Condividi tramite


TensorInt32Bit.CreateFromArray(IIterable<Int64>, Int32[]) Metodo

Definizione

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

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

Parametri

shape

IIterable<Int64>

IEnumerable<Int64>

Windows.Foundation.Collections.IIterable

IIterable<long>

Dimensione del buffer.

data

Int32[]

int[]

Dati da copiare nel buffer.

Restituisce

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

Commenti

Windows Server

Per usare questa API in Windows Server, è necessario usare Windows Server 2019 con Esperienza desktop.

Thread safety

Questa API è thread-safe.

Si applica a