TensorInt32Bit.CreateFromShapeArrayAndDataArray(Int64[], Int32[]) 方法

定義

建立 32 位帶正負號的整數 tensor 物件、配置大小圖形的緩衝區,並將所有資料複製到其中。

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

參數

shape

Int64[]

long long[]

long[]

緩衝區的大小。

data

Int32[]

int[]

要複製到緩衝區的資料。

傳回

具有包含指定資料的緩衝區的 32 位帶正負號整數 tensor 物件。

Windows 需求

裝置系列
Windows 10, version 1903 (已於 10.0.18362.0 引進)
API contract
Windows.AI.MachineLearning.MachineLearningContract (已於 v2.0 引進)

適用於