TensorString.CreateFromIterable Método

Definição

Cria um objeto tensor de cadeia de caracteres, aloca um buffer de forma de tamanho e copia todos os dados para ele.

public:
 static TensorString ^ CreateFromIterable(IIterable<long long> ^ shape, IIterable<Platform::String ^> ^ data);
 static TensorString CreateFromIterable(IIterable<long> const& shape, IIterable<winrt::hstring> const& data);
public static TensorString CreateFromIterable(IEnumerable<long> shape, IEnumerable<string> data);
function createFromIterable(shape, data)
Public Shared Function CreateFromIterable (shape As IEnumerable(Of Long), data As IEnumerable(Of String)) As TensorString

Parâmetros

shape

IIterable<Int64>

IEnumerable<Int64>

Windows.Foundation.Collections.IIterable

IIterable<long>

O tamanho do buffer.

data

IIterable<String>

IEnumerable<String>

IIterable<Platform::String>

IIterable<winrt::hstring>

Os dados a serem copiados para o buffer.

Retornos

Um objeto tensor de cadeia de caracteres com um buffer que contém os dados fornecidos.

Comentários

Windows Server

Para usar essa API no Windows Server, você deve usar o Windows Server 2019 com a Experiência desktop.

Acesso thread-safe

Essa API é thread-safe.

Aplica-se a