Condividi tramite


TensorBoolean.CreateFromBuffer(Int64[], IBuffer) Metodo

Definizione

Crea un oggetto tensore booleano con la forma specificata e usa il buffer sottostante in dati per la valutazione successiva.

public:
 static TensorBoolean ^ CreateFromBuffer(Platform::Array <long long> ^ shape, IBuffer ^ buffer);
 static TensorBoolean CreateFromBuffer(winrt::array_view <long> const& shape, IBuffer const& buffer);
public static TensorBoolean CreateFromBuffer(long[] shape, IBuffer buffer);
function createFromBuffer(shape, buffer)
Public Shared Function CreateFromBuffer (shape As Long(), buffer As IBuffer) As TensorBoolean

Parametri

shape

Int64[]

long long[]

long[]

Dimensioni del buffer.

buffer
IBuffer

Buffer da usare durante la valutazione.

Restituisce

Oggetto tensore booleano supportato da un riferimento al buffer fornito IBufferdati.

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)

Commenti

Durante la creazione di questo oggetto non vengono eseguite copie e il buffer sottostante in dati viene usato direttamente dal motore.

Le copie nella memoria video vengono eseguite quando vengono eseguite su dispositivi non CPU.

Si applica a