TensorBoolean.CreateFromArray(IIterable<Int64>, Boolean[]) Método

Definición

Crea un objeto tensor booleano, asigna un búfer de forma de tamaño y copia todos los datos en él.

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

Parámetros

shape

IIterable<Int64>

IEnumerable<Int64>

Windows.Foundation.Collections.IIterable

IIterable<long>

Tamaño del búfer.

data

Boolean[]

bool[]

Datos que se van a copiar en el búfer.

Devoluciones

Objeto tensor booleano con un búfer que contiene los datos especificados.

Comentarios

Windows Server

Para usar esta API en Windows Server, debe usar Windows Server 2019 con Experiencia de escritorio.

Seguridad para subprocesos

Esta API es segura para subprocesos.

Se aplica a