Condividi tramite


TensorBoolean.CreateFromIterable Metodo

Definizione

Crea un oggetto tensore booleano, alloca un buffer di forma di dimensione e copia tutti i dati in esso.

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

Parametri

shape

IIterable<Int64>

IEnumerable<Int64>

Windows.Foundation.Collections.IIterable

IIterable<long>

Dimensione del buffer.

data

IIterable<Boolean>

IEnumerable<Boolean>

IIterable<bool>

Dati da copiare nel buffer.

Restituisce

Oggetto tensor booleano 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