Leer en inglés

Compartir a través de


IReadOnlyTensor<TSelf,T>.GetPinnableReference Method

Definition

Returns a reference to the 0th element of the tensor. If the tensor is empty, returns null.

C#
public ref readonly T GetPinnableReference();

Returns

T

Remarks

This method can be used for pinning and is required to support the use of the tensor within a fixed statement.

Applies to

Producto Versiones
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)