Share via


TensorInt16Bit.CreateFromShapeArrayAndDataArray(Int64[], Int16[]) メソッド

定義

16 ビット符号付き整数テンソル オブジェクトを作成し、サイズ 図形のバッファーを割り当て、すべての データ をコピーします。

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

パラメーター

shape

Int64[]

long long[]

long[]

バッファーのサイズ。

data

Int16[]

short[]

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

戻り値

指定されたデータを含むバッファーを持つ 16 ビット符号付き整数テンソル オブジェクト。

Windows の要件

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

適用対象