共用方式為


TensorBoolean.CreateFromShapeArrayAndDataArray(Int64[], Boolean[]) 方法

定義

建立布林 tensor 物件、配置大小圖形的緩衝區,並將所有資料複製到其中。

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

參數

shape

Int64[]

long long[]

long[]

緩衝區的大小。

data

Boolean[]

bool[]

要複製到緩衝區的資料。

傳回

具有包含指定資料的緩衝區的布林 tensor 物件。

Windows 需求

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

適用於