TensorInt32Bit.CreateFromShapeArrayAndDataArray(Int64[], Int32[]) Método

Definición

Crea un objeto tensor de 32 bits con signo, asigna un búfer de forma de tamaño y copia todos los datos en él.

public:
 static TensorInt32Bit ^ CreateFromShapeArrayAndDataArray(Platform::Array <long long> ^ shape, Platform::Array <int> ^ data);
 static TensorInt32Bit CreateFromShapeArrayAndDataArray(winrt::array_view <long> const& shape, winrt::array_view <int> const& data);
public static TensorInt32Bit CreateFromShapeArrayAndDataArray(long[] shape, int[] data);
function createFromShapeArrayAndDataArray(shape, data)
Public Shared Function CreateFromShapeArrayAndDataArray (shape As Long(), data As Integer()) As TensorInt32Bit

Parámetros

shape

Int64[]

long long[]

long[]

Tamaño del búfer.

data

Int32[]

int[]

Datos que se van a copiar en el búfer.

Devoluciones

Un objeto tensor de entero de 32 bits con signo con un búfer que contiene los datos especificados.

Requisitos de Windows

Familia de dispositivos
Windows 10, version 1903 (se introdujo en la versión 10.0.18362.0)
API contract
Windows.AI.MachineLearning.MachineLearningContract (se introdujo en la versión v2.0)

Se aplica a