Share via


TensorFloat16Bit.CreateReference Method

Definition

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

public IMemoryBufferReference CreateReference();

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 float 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

Product Versions
WinRT Build 18362, Build 19041, Build 20348, Build 22000, Build 22621, Build 26100