Google I/O is a wrap! Catch up on TensorFlow sessions View sessions

tf.keras.backend.clip

TensorFlow 1 version View source on GitHub

Element-wise value clipping.

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

A tensor.