Language

IReadOnlyTensor<TSelf,T>.FlattenTo(Span<T>) Method

Definition

Flattens the contents of the tensor into a destination span.

public:
 void FlattenTo(Span<T> destination);
public void FlattenTo(scoped Span<T> destination);
abstract member FlattenTo : Span<'T> -> unit
Public Sub FlattenTo (destination As Span(Of T))

Parameters

destination
Span<T>

The destination span.

Exceptions

destination is shorter than the source tensor, or the source and destination overlap in an unsupported layout.

Remarks

Overlapping dense tensors are supported. Other overlapping layouts are rejected before copying.

Applies to