Share via


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

Définition

Crée un objet tenseur d’entier non signé 16 bits, alloue une mémoire tampon de taille et y copie toutes les données .

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

Paramètres

shape

IIterable<Int64>

IEnumerable<Int64>

Windows.Foundation.Collections.IIterable

IIterable<long>

Taille de la mémoire tampon.

data

UInt16[]

unsigned short[]

uint16_t[]

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

Retours

Objet tenseur d’entier non signé 16 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 utilisateur.

Sécurité des threads

Cette API est thread-safe.

S’applique à