Прочетете на английски

Споделяне чрез


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

Definition

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Flattens the tensor to the specified destination. The destination span must be equal to or larger than the number of elements in the source tensor.

C#
public void FlattenTo(scoped Span<T> destination);

Parameters

destination
Span<T>

The destination span where the data should be flattened to.

Applies to

Продукт Версии
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)