Performs a safe saturating cast of value
to dtype
.
View aliases
Main aliases
Compat aliases for migrationSee Migration guide for more details.
tf.compat.v1.dtypes.saturate_cast
, tf.compat.v1.saturate_cast
tf.dtypes.saturate_cast(
value, dtype, name=None
)
Used in the notebooks
Used in the tutorials |
---|
This function casts the input to dtype
without overflow. If
there is a danger that values would over or underflow in the cast, this op
applies the appropriate clamping before the cast. See tf.cast
for more
details.
Returns | |
---|---|
value safely cast to dtype .
|