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 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
Inheritance
TensorKind
Attributes

Windows requirements

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

Fields

Name Value Description
Undefined 0

Invalid type.

Float 1

The tensor type is 32-bit floating point.

UInt8 2

The tensor type is 8-bit unsigned integer.

Int8 3

The tensor type is 8-bit signed integer.

UInt16 4

The tensor type is 16-bit unsigned integer.

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.

String 8

The tensor type is String.

Boolean 9

The tensor type is Boolean.

Float16 10

The tensor type is 16-bit floating point.

Double 11

The tensor type is 64-bit floating point.

UInt32 12

The tensor type is 32-bit unsigned integer.

UInt64 13

The tensor type is 64-bit unsigned integer.

Complex64 14

Invalid type.

Complex128 15

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