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

Définition

Crée un objet tenseur d’entier signé 64 bits, alloue une mémoire tampon de taille et copie toutes les données dans celle-ci.

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

Paramètres

shape

IIterable<Int64>

IEnumerable<Int64>

Windows.Foundation.Collections.IIterable

IIterable<long>

Taille de la mémoire tampon.

data

Int64[]

long long[]

long[]

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

Retours

Objet tenseur entier signé 64 bits 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 de bureau.

Sécurité des threads

Cette API est thread-safe.

S’applique à