IReadOnlyTensor<TSelf,T>.GetPinnableReference Method

Definition

Returns a reference to an object of type T that can be used for pinning.

public:
 T& ^ GetPinnableReference();
public ref readonly T GetPinnableReference();
abstract member GetPinnableReference : unit -> 'T
Public Function GetPinnableReference () As T

Returns

T

A reference to the element of the tensor at index 0, or null if the tensor is empty.

Remarks

This method is intended to support .NET compilers and is not intended to be called by user code.

Applies to