IReadOnlyTensor<TSelf,T>.TryFlattenTo(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.
Tries to flatten the tensor to the specified destination. The destination span must be equal to or larger than the number of elements in the source tensor.
public:
bool TryFlattenTo(Span<T> destination);
public bool TryFlattenTo (scoped Span<T> destination);
abstract member TryFlattenTo : Span<'T> -> bool
Public Function TryFlattenTo (destination As Span(Of T)) As Boolean
Parameters
- destination
- Span<T>
The destination span where the data should be flattened to.
Returns
true
if the flatten succeeded, false
otherwise.
Applies to
Spolupracujte s námi na GitHubu
Zdroj tohoto obsahu najdete na GitHubu, kde můžete také vytvářet a kontrolovat problémy a žádosti o přijetí změn. Další informace najdete v našem průvodci pro přispěvatele.