Compartilhar via


TensorUInt16Bit.CreateFromIterable Método

Definição

Cria um objeto tensor inteiro sem sinal de 16 bits, aloca um buffer de forma de tamanho e copia todos os dados para ele.

public:
 static TensorUInt16Bit ^ CreateFromIterable(IIterable<long long> ^ shape, IIterable<unsigned short> ^ data);
 static TensorUInt16Bit CreateFromIterable(IIterable<long> const& shape, IIterable<uint16_t> const& data);
public static TensorUInt16Bit CreateFromIterable(IEnumerable<long> shape, IEnumerable<ushort> data);
function createFromIterable(shape, data)
Public Shared Function CreateFromIterable (shape As IEnumerable(Of Long), data As IEnumerable(Of UShort)) As TensorUInt16Bit

Parâmetros

shape

IIterable<Int64>

IEnumerable<Int64>

Windows.Foundation.Collections.IIterable

IIterable<long>

O tamanho do buffer.

data

IIterable<UInt16>

IEnumerable<UInt16>

Windows.Foundation.Collections.IIterable

IIterable<uint16_t>

Os dados a serem copiados para o buffer.

Retornos

Um objeto tensor inteiro sem sinal de 16 bits 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