Share via


TensorFloat.CreateReference Method

Definition

Important

For the latest documentation about Windows Machine Learning, see What is Windows ML. That documentation describes APIs that are in the Microsoft.Windows.AI.MachineLearning namespace, which ships in the Windows App SDK. Those APIs supersede the ones documented here, which are in the Windows.AI.MachineLearning namespace, and were shipped in 2018.

Returns an IMemoryBufferReference representation of the buffer backing the 32-bit float 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 32-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