DataType

public final enum DataType

Represents the type of elements in a Tensor as an enum.

Inherited Methods

Enum Values

public static final DataType BOOL

Boolean.

public static final DataType DOUBLE

64-bit double precision floating point.

public static final DataType FLOAT

32-bit single precision floating point.

public static final DataType INT32

32-bit signed integer.

public static final DataType INT64

64-bit signed integer.

public static final DataType STRING

A sequence of bytes.

TensorFlow uses the STRING type for an arbitrary sequence of bytes.

public static final DataType UINT8

8-bit unsigned integer.