Partager via


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

Définition

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

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

Paramètres

shape

IIterable<Int64>

IEnumerable<Int64>

Windows.Foundation.Collections.IIterable

IIterable<long>

Taille de la mémoire tampon.

data

UInt32[]

unsigned int[]

uint32_t[]

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

Retours

Objet tenseur d’entier non signé 32 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 à