TensorFloat16Bit.CreateFromShapeArrayAndDataArray(Int64[], Single[]) メソッド

定義

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

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

パラメーター

shape

Int64[]

long long[]

long[]

バッファーのサイズ。

data

Single[]

float[]

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

戻り値

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

Windows の要件

デバイス ファミリ
Windows 10, version 1903 (10.0.18362.0 で導入)
API contract
Windows.AI.MachineLearning.MachineLearningContract (v2.0 で導入)

適用対象