Warning: This API is deprecated and will be removed in a future version of TensorFlow after the replacement is stable.

DataType

Stay organized with collections Save and categorize content based on your preferences.
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.