| View source on GitHub | 
Performs a safe saturating cast of value to dtype.
tf.dtypes.saturate_cast(
    value, dtype, name=None
)
  This function casts the input to dtype without applying any scaling. If there is a danger that values would over or underflow in the cast, this op applies the appropriate clamping before the cast.
| Args | |
|---|---|
| value | A Tensor. | 
| dtype | The desired output DType. | 
| name | A name for the operation (optional). | 
| Returns | |
|---|---|
| valuesafely cast todtype. | 
    © 2022 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 4.0.
Code samples licensed under the Apache 2.0 License.
    https://www.tensorflow.org/versions/r2.9/api_docs/python/tf/dtypes/saturate_cast