tf.dtypes.DType

Represents the type of the elements in a Tensor.

The following DType objects are defined:

The tf.as_dtype() function converts numpy types and string type names to a DType object.