Compartilhar via


TensorUInt32Bit.CreateFromArray(IIterable<Int64>, UInt32[]) Método

Definição

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

public:
 static TensorUInt32Bit ^ CreateFromArray(IIterable<long long> ^ shape, Platform::Array <unsigned int> ^ data);
 static TensorUInt32Bit CreateFromArray(IIterable<long> const& shape, winrt::array_view <uint32_t> const& data);
public static TensorUInt32Bit CreateFromArray(IEnumerable<long> shape, uint[] data);
function createFromArray(shape, data)
Public Shared Function CreateFromArray (shape As IEnumerable(Of Long), data As UInteger()) As TensorUInt32Bit

Parâmetros

shape

IIterable<Int64>

IEnumerable<Int64>

Windows.Foundation.Collections.IIterable

IIterable<long>

O tamanho do buffer.

data

UInt32[]

unsigned int[]

uint32_t[]

Os dados a serem copiados para o buffer.

Retornos

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