Langue

TensorInt8Bit.CreateFromShapeArrayAndDataArray(Int64[], Byte[]) Méthode

Définition

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

public:
 static TensorInt8Bit ^ CreateFromShapeArrayAndDataArray(Platform::Array <long long> ^ shape, Platform::Array <byte> ^ data);
 static TensorInt8Bit CreateFromShapeArrayAndDataArray(winrt::array_view <long> const& shape, winrt::array_view <byte> const& data);
public static TensorInt8Bit CreateFromShapeArrayAndDataArray(long[] shape, byte[] data);
function createFromShapeArrayAndDataArray(shape, data)
Public Shared Function CreateFromShapeArrayAndDataArray (shape As Long(), data As Byte()) As TensorInt8Bit

Paramètres

shape

Int64[]

long long[]

long[]

Taille de la mémoire tampon.

data

Byte[]

byte[]

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

Retours

Objet tenseur d’entier signé 8 bits avec une mémoire tampon contenant les données données.

Configuration requise pour Windows

Configuration requise Description
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 à