共用方式為


TensorInt8Bit.Create 方法

定義

多載

Create()

建立 8 位帶正負號的整數張量物件,而不配置緩衝區。

Create(IIterable<Int64>)

建立 8 位帶正負號的整數張量物件,並配置大小 圖形的緩衝區。

Create()

建立 8 位帶正負號的整數張量物件,而不配置緩衝區。

public:
 static TensorInt8Bit ^ Create();
/// [Windows.Foundation.Metadata.Overload("Create")]
 static TensorInt8Bit Create();
[Windows.Foundation.Metadata.Overload("Create")]
public static TensorInt8Bit Create();
function create()
Public Shared Function Create () As TensorInt8Bit

傳回

8 位帶正負號的整數張量物件。

屬性

備註

Windows Server

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

執行緒安全

此 API 是安全線程。

適用於

Create(IIterable<Int64>)

建立 8 位帶正負號的整數張量物件,並配置大小 圖形的緩衝區。

public:
 static TensorInt8Bit ^ Create(IIterable<long long> ^ shape);
/// [Windows.Foundation.Metadata.Overload("Create2")]
 static TensorInt8Bit Create(IIterable<long> const& shape);
[Windows.Foundation.Metadata.Overload("Create2")]
public static TensorInt8Bit Create(IEnumerable<long> shape);
function create(shape)
Public Shared Function Create (shape As IEnumerable(Of Long)) As TensorInt8Bit

參數

shape

IIterable<Int64>

IEnumerable<Int64>

Windows.Foundation.Collections.IIterable

IIterable<long>

緩衝區的大小。

傳回

具有指定大小的緩衝區的 8 位帶正負號整數張量物件。

屬性

備註

Windows Server

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

執行緒安全

此 API 是安全線程。

適用於