TensorKind Enum

Definition

Defines the list of supported tensor data types.

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

Windows 10 requirements

Device family
Windows 10, version 1809 (introduced in 10.0.17763.0)
API contract
Windows.AI.MachineLearning.MachineLearningContract (introduced in v1.0)

Fields

Boolean 9

The tensor type is Boolean.

Complex128 15

Invalid type.

Complex64 14

Invalid type.

Double 11

The tensor type is 64-bit floating point.

Float 1

The tensor type is 32-bit floating point.

Float16 10

The tensor type is 16-bit floating point.

Int16 5

The tensor type is 16-bit signed integer.

Int32 6

The tensor type is 32-bit signed integer.

Int64 7

The tensor type is 64-bit signed integer.

Int8 3

The tensor type is 8-bit signed integer.

String 8

The tensor type is String.

UInt16 4

The tensor type is 16-bit unsigned integer.

UInt32 12

The tensor type is 32-bit unsigned integer.

UInt64 13

The tensor type is 64-bit unsigned integer.

UInt8 2

The tensor type is 8-bit unsigned integer.

Undefined 0

Invalid type.

Remarks

A tensor is a multi-dimensional array of values.

The layout of tensors is row-major, with tightly packed contiguous data representing each dimension. The total size of a tensor is the product of the size of each dimension.

Windows Server

To use this API on Windows Server, you must use Windows Server 2019 with Desktop Experience.

Thread safety

This API is thread-safe.

Applies to

See also