TensorInt16Bit.CreateFromShapeArrayAndDataArray(Int64[], Int16[]) Metodo

Definizione

Crea un oggetto tensore intero con segno a 16 bit, alloca un buffer di forma di dimensione e copia tutti i dati in esso.

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

Parametri

shape

Int64[]

long long[]

long[]

Dimensione del buffer.

data

Int16[]

short[]

Dati da copiare nel buffer.

Restituisce

Oggetto tensore intero con segno a 16 bit con un buffer contenente i dati specificati.

Requisiti Windows

Famiglia di dispositivi
Windows 10, version 1903 (è stato introdotto in 10.0.18362.0)
API contract
Windows.AI.MachineLearning.MachineLearningContract (è stato introdotto in v2.0)

Si applica a