共用方式為


TensorBoolean.CreateFromIterable 方法

定義

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

public:
 static TensorBoolean ^ CreateFromIterable(IIterable<long long> ^ shape, IIterable<bool> ^ data);
 static TensorBoolean CreateFromIterable(IIterable<long> const& shape, IIterable<bool> const& data);
public static TensorBoolean CreateFromIterable(IEnumerable<long> shape, IEnumerable<bool> data);
function createFromIterable(shape, data)
Public Shared Function CreateFromIterable (shape As IEnumerable(Of Long), data As IEnumerable(Of Boolean)) As TensorBoolean

參數

shape

IIterable<Int64>

IEnumerable<Int64>

Windows.Foundation.Collections.IIterable

IIterable<long>

緩衝區的大小。

data

IIterable<Boolean>

IEnumerable<Boolean>

IIterable<bool>

要複製到緩衝區的資料。

傳回

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

備註

Windows Server

若要在 Windows Server 上使用此 API,您必須搭配桌面體驗使用 Windows Server 2019。

執行緒安全

此 API 是安全線程。

適用於