Condividi tramite


TensorFloat16Bit.CreateFromIterable Metodo

Definizione

Crea un oggetto tensore float a 16 bit, alloca un buffer di forma di dimensioni e copia tutti i dati in esso contenuti.

public:
 static TensorFloat16Bit ^ CreateFromIterable(IIterable<long long> ^ shape, IIterable<float> ^ data);
 static TensorFloat16Bit CreateFromIterable(IIterable<long> const& shape, IIterable<float> const& data);
public static TensorFloat16Bit CreateFromIterable(IEnumerable<long> shape, IEnumerable<float> data);
function createFromIterable(shape, data)
Public Shared Function CreateFromIterable (shape As IEnumerable(Of Long), data As IEnumerable(Of Single)) As TensorFloat16Bit

Parametri

shape

IIterable<Int64>

IEnumerable<Int64>

Windows.Foundation.Collections.IIterable

IIterable<long>

Dimensione del buffer.

data

IIterable<Single>

IEnumerable<Single>

IIterable<float>

Dati da copiare nel buffer.

Restituisce

Oggetto tensore float a 16 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