Condividi tramite


TensorBoolean.CreateFromShapeArrayAndDataArray(Int64[], Boolean[]) Metodo

Definizione

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

public:
 static TensorBoolean ^ CreateFromShapeArrayAndDataArray(Platform::Array <long long> ^ shape, Platform::Array <bool> ^ data);
 static TensorBoolean CreateFromShapeArrayAndDataArray(winrt::array_view <long> const& shape, winrt::array_view <bool> const& data);
public static TensorBoolean CreateFromShapeArrayAndDataArray(long[] shape, bool[] data);
function createFromShapeArrayAndDataArray(shape, data)
Public Shared Function CreateFromShapeArrayAndDataArray (shape As Long(), data As Boolean()) As TensorBoolean

Parametri

shape

Int64[]

long long[]

long[]

Dimensione del buffer.

data

Boolean[]

bool[]

Dati da copiare nel buffer.

Restituisce

Oggetto tensore booleano con un buffer contenente i dati specificati.

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)

Si applica a