TensorInt16Bit.CreateFromShapeArrayAndDataArray(Int64[], Int16[]) Method
Definition
Important
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 16-bit signed integer tensor object, allocates a buffer of size shape, and copies all of data into it.
public:
static TensorInt16Bit ^ CreateFromShapeArrayAndDataArray(Platform::Array <long long> ^ shape, Platform::Array <short> ^ data);
static TensorInt16Bit CreateFromShapeArrayAndDataArray(winrt::array_view <long> const& shape, winrt::array_view <short> const& data);
public static TensorInt16Bit CreateFromShapeArrayAndDataArray(long[] shape, short[] data);
function createFromShapeArrayAndDataArray(shape, data)
Public Shared Function CreateFromShapeArrayAndDataArray (shape As Long(), data As Short()) As TensorInt16Bit
Parameters
- shape
-
Int64[]
long long[]
long[]
The size of the buffer.
- data
-
Int16[]
short[]
The data to copy into the buffer.
Returns
A 16-bit signed integer tensor object with a buffer containing the given data.
Windows requirements
Device family |
Windows 10, version 1903 (introduced in 10.0.18362.0)
|
API contract |
Windows.AI.MachineLearning.MachineLearningContract (introduced in v2.0)
|