次の方法で共有


TensorDouble.CreateFromArray(IIterable<Int64>, Double[]) メソッド

定義

64 ビット浮動小数点テンソル オブジェクトを作成し、サイズ 図形のバッファーを割り当て、すべての データ をコピーします。

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

パラメーター

shape

IIterable<Int64>

IEnumerable<Int64>

Windows.Foundation.Collections.IIterable

IIterable<long>

バッファーのサイズ。

data

Double[]

double[]

バッファーにコピーするデータ。

戻り値

指定されたデータを含むバッファーを持つ 64 ビット浮動小数点テンソル オブジェクト。

注釈

Windows Server

Windows Server でこの API を使用するには、Windows Server 2019 デスクトップ エクスペリエンスを使用する必要があります。

スレッド セーフ

この API はスレッド セーフです。

適用対象