TensorFloat16Bit.CreateFromShapeArrayAndDataArray(Int64[], Single[]) Méthode

Définition

Crée un objet tenseur float 16 bits, alloue une mémoire tampon de taille et copie toutes les données dans celui-ci.

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

Paramètres

shape

Int64[]

long long[]

long[]

Taille de la mémoire tampon.

data

Single[]

float[]

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

Retours

Objet tenseur float 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 à