Share via


TensorUInt16Bit.CreateFromShapeArrayAndDataArray(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 copie toutes les données dans celui-ci.

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

Paramètres

shape

Int64[]

long long[]

long[]

Taille de la mémoire tampon.

data

UInt16[]

unsigned short[]

uint16_t[]

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

Retours

Objet tenseur entier non signé 16 bits avec une mémoire tampon contenant les données données.

Configuration requise pour Windows

Famille d’appareils
Windows 10, version 1903 (introduit dans 10.0.18362.0)
API contract
Windows.AI.MachineLearning.MachineLearningContract (introduit dans v2.0)

S’applique à