Module: tf.dtypes

Defined in tensorflow/_api/v1/dtypes/__init__.py.

Public API for tf.dtypes namespace.

Classes

class DType: Represents the type of the elements in a Tensor.

Functions

as_dtype(...): Converts the given type_value to a DType.

as_string(...): Converts each entry in the given tensor to strings. Supports many numeric

cast(...): Casts a tensor to a new type.

complex(...): Converts two real numbers to a complex number.

saturate_cast(...): Performs a safe saturating cast of value to dtype.