TensorFloat16Bit.CreateFromArray(IIterable<Int64>, Single[]) Método

Definição

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

public:
 static TensorFloat16Bit ^ CreateFromArray(IIterable<long long> ^ shape, Platform::Array <float> ^ data);
 static TensorFloat16Bit CreateFromArray(IIterable<long> const& shape, winrt::array_view <float> const& data);
public static TensorFloat16Bit CreateFromArray(IEnumerable<long> shape, float[] data);
function createFromArray(shape, data)
Public Shared Function CreateFromArray (shape As IEnumerable(Of Long), data As Single()) As TensorFloat16Bit

Parâmetros

shape

IIterable<Int64>

IEnumerable<Int64>

Windows.Foundation.Collections.IIterable

IIterable<long>

O tamanho do buffer.

data

Single[]

float[]

Os dados a serem copiados para o buffer.

Retornos

Um objeto tensor float 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