Share via


TensorUInt16Bit.CreateReference Method

Definition

Returns an IMemoryBufferReference representation of the buffer backing the 16-bit unsigned integer tensor object.

public:
 virtual IMemoryBufferReference ^ CreateReference() = CreateReference;
IMemoryBufferReference CreateReference();
public IMemoryBufferReference CreateReference();
function createReference()
Public Function CreateReference () As IMemoryBufferReference

Returns

The IMemoryBufferReference representation of a tensor buffer.

Implements

Windows requirements

Device family
Windows 10, version 1903 (introduced in 10.0.18362.0)
API contract
Windows.AI.MachineLearning.MachineLearningContract (introduced in v2.0)

Remarks

All IMemoryBufferReference objects produced by this method must be closed prior to the 16-bit unsigned integer tensor object's evaluation.

Outstanding IMemoryBufferReference objects are an indication to the engine that the underlying buffer is currently being modified via the IMemoryBufferByteAccess native interop interface, and is not ready for evaluation.

Applies to