Int32Bit. Create From Buffer(Int64, IBuffer) Method
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a 32-bit signed integer tensor object with the given shape and uses the underlying buffer in buffer for subsequent evaluation.
public: static TensorInt32Bit ^ CreateFromBuffer(Platform::Array <long long> ^ shape, IBuffer ^ buffer);
static TensorInt32Bit CreateFromBuffer(winrt::array_view <long> const& shape, IBuffer const& buffer);
public static TensorInt32Bit CreateFromBuffer(long shape, IBuffer buffer);
function createFromBuffer(shape, buffer)
Public Shared Function CreateFromBuffer (shape As Long(), buffer As IBuffer) As TensorInt32Bit
The size of the buffer.
The buffer to use during evaluation.
A 32-bit signed integer tensor object backed by a buffer reference to the provided IBuffer buffer.
Windows 10, version 1903 (introduced in 10.0.18362.0)
Windows.AI.MachineLearning.MachineLearningContract (introduced in v2.0)
No copies are performed during the creation of this object and the underlying buffer in buffer is used directly by the engine.
Copies to video memory are made when running on non-CPU devices.
Submit and view feedback for