Share via


TensorInt8Bit.CreateFromShapeArrayAndDataArray(Int64[], Byte[]) メソッド

定義

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

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

パラメーター

shape

Int64[]

long long[]

long[]

バッファーのサイズ。

data

Byte[]

byte[]

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

戻り値

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

Windows の要件

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

適用対象