Delen via


Tensor<T>.IReadOnlyTensor<Tensor<T>,T>.GetPinnableReference Method

Definition

Returns a reference to the 0th element of the ReadOnlyTensor. If the ReadOnlyTensor is empty, returns null reference. It can be used for pinning and is required to support the use of ReadOnlyTensor within a fixed statement.

 virtual T& ^ System.Numerics.Tensors.IReadOnlyTensor<System.Numerics.Tensors.Tensor<T>,T>.GetPinnableReference() = System::Numerics::Tensors::IReadOnlyTensor<System::Numerics::Tensors::Tensor<T> ^, T>::GetPinnableReference;
ref readonly T IReadOnlyTensor<Tensor<T>,T>.GetPinnableReference ();
abstract member System.Numerics.Tensors.IReadOnlyTensor<System.Numerics.Tensors.Tensor<T>,T>.GetPinnableReference : unit -> 'T
override this.System.Numerics.Tensors.IReadOnlyTensor<System.Numerics.Tensors.Tensor<T>,T>.GetPinnableReference : unit -> 'T
Function GetPinnableReference () As T Implements IReadOnlyTensor(Of Tensor(Of T), T).GetPinnableReference

Returns

T

Implements

Applies to