Share via


TensorKind 列舉

定義

定義支援的 Tensor 資料類型清單。

public enum class TensorKind
/// [Windows.Foundation.Metadata.ContractVersion(Windows.AI.MachineLearning.MachineLearningContract, 65536)]
enum class TensorKind
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.AI.MachineLearning.MachineLearningContract), 65536)]
public enum TensorKind
var value = Windows.AI.MachineLearning.TensorKind.undefined
Public Enum TensorKind
繼承
TensorKind
屬性

Windows 需求

裝置系列
Windows 10, version 1809 (已於 10.0.17763.0 引進)
API contract
Windows.AI.MachineLearning.MachineLearningContract (已於 v1.0 引進)

欄位

Boolean 9

tensor 類型為 Boolean

Complex128 15

不正確類型。

Complex64 14

不正確類型。

Double 11

tensor 類型為 64 位浮點。

Float 1

tensor 類型為 32 位浮點。

Float16 10

tensor 類型為 16 位浮點。

Int16 5

tensor 類型為 16 位帶正負號的整數。

Int32 6

tensor 類型為 32 位帶正負號的整數。

Int64 7

tensor 類型為 64 位帶正負號的整數。

Int8 3

tensor 類型是 8 位帶正負號的整數。

String 8

tensor 類型為 String

UInt16 4

tensor 類型為 16 位不帶正負號的整數。

UInt32 12

tensor 類型為 32 位不帶正負號的整數。

UInt64 13

tensor 類型為 64 位不帶正負號的整數。

UInt8 2

tensor 類型為 8 位不帶正負號的整數。

Undefined 0

不正確類型。

備註

tensor 是值的多維度陣列。

張量的配置是資料列主要,且緊密封裝的連續資料代表每個維度。 張量的大小總計是每個維度大小的乘積。

Windows Server

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

執行緒安全

此 API 是安全線程。

適用於

另請參閱