Condividi tramite


TensorUInt8Bit.CreateFromBuffer(Int64[], IBuffer) Metodo

Definizione

Crea un oggetto tensore intero senza segno a 8 bit con la forma specificata e usa il buffer sottostante nel buffer per la valutazione successiva.

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

Parametri

shape

Int64[]

long long[]

long[]

Dimensione del buffer.

buffer
IBuffer

Buffer da usare durante la valutazione.

Restituisce

Oggetto tensore intero senza segno a 8 bit supportato da un riferimento al bufferfornito.

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

Nessuna copia viene eseguita durante la creazione di questo oggetto e il buffer sottostante nel buffer viene usato direttamente dal motore.

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

Si applica a