TensorString.CreateFromArray(IIterable<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 ^ CreateFromArray(IIterable<long long> ^ shape, Platform::Array <Platform::String ^> ^ data);
 static TensorString CreateFromArray(IIterable<long> const& shape, winrt::array_view <winrt::hstring const&> const& data);
public static TensorString CreateFromArray(IEnumerable<long> shape, string[] data);
function createFromArray(shape, data)
Public Shared Function CreateFromArray (shape As IEnumerable(Of Long), data As String()) As TensorString

Paramètres

shape

IIterable<Int64>

IEnumerable<Int64>

Windows.Foundation.Collections.IIterable

IIterable<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.

Remarques

Windows Server

Pour utiliser cette API sur Windows Server, vous devez utiliser Windows Server 2019 avec Expérience utilisateur.

Sécurité des threads

Cette API est thread-safe.

S’applique à