TensorDouble.CreateFromArray(IIterable<Int64>, Double[]) Método

Definición

Crea un objeto de tensor flotante de 64 bits, asigna un búfer de forma de tamaño y copia todos los datos en él.

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

Parámetros

shape

IIterable<Int64>

IEnumerable<Int64>

Windows.Foundation.Collections.IIterable

IIterable<long>

Tamaño del búfer.

data

Double[]

double[]

Datos que se van a copiar en el búfer.

Devoluciones

Un objeto de tensor float de 64 bits con un búfer que contiene los datos especificados.

Comentarios

Windows Server

Para usar esta API en Windows Server, debe usar Windows Server 2019 con experiencia de escritorio.

Seguridad para subprocesos

Esta API es segura para subprocesos.

Se aplica a