TensorInt16Bit.CreateFromShapeArrayAndDataArray(Int64[], Int16[]) Methode

Definition

Erstellt ein 16-Bit-Ganzzahl-Tensorobjekt mit Vorzeichen, ordnet einen Puffer der Größenform zu und kopiert alle Daten in dieses Objekt.

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

Parameter

shape

Int64[]

long long[]

long[]

Die Größe des Puffers.

data

Int16[]

short[]

Die Daten, die in den Puffer kopiert werden sollen.

Gibt zurück

Ein 16-Bit-Ganzzahl-Tensorobjekt mit Vorzeichen mit einem Puffer, der die angegebenen Daten enthält.

Windows-Anforderungen

Gerätefamilie
Windows 10, version 1903 (eingeführt in 10.0.18362.0)
API contract
Windows.AI.MachineLearning.MachineLearningContract (eingeführt in v2.0)

Gilt für: