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

Définition

Crée un objet tensoriel booléen, alloue une mémoire tampon de taille et copie toutes les données dans celui-ci.

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

Paramètres

shape

IIterable<Int64>

IEnumerable<Int64>

Windows.Foundation.Collections.IIterable

IIterable<long>

Taille de la mémoire tampon.

data

Boolean[]

bool[]

Données à copier dans la mémoire tampon.

Retours

Objet tensoriel booléen avec une mémoire tampon contenant les données données.

Remarques

Windows Server

Pour utiliser cette API sur Windows Server, vous devez utiliser Windows Server 2019 avec Expérience utilisateur.

Sécurité des threads

Cette API est thread-safe.

S’applique à