tf.keras.backend.clip

Element-wise value clipping.

Used in the notebooks

Used in the guide

x Tensor or variable.
min_value Python float, integer, or tensor.
max_value Python float, integer, or tensor.

A tensor.