TensorString.CreateFromShapeArrayAndDataArray(Int64[], String[]) Méthode

Définition

Crée un objet tensoriel de chaîne, alloue une mémoire tampon de taille et copie toutes les données dans celui-ci.

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

Paramètres

shape

Int64[]

long long[]

long[]

Taille de la mémoire tampon.

data

String[]

Platform::String[]

winrt::hstring[]

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

Retours

Objet tenseur de chaîne 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 à