tf.math.softplus

Computes elementwise softplus: softplus(x) = log(exp(x) + 1).

Used in the notebooks

Used in the guide Used in the tutorials

softplus is a smooth approximation of relu. Like relu, softplus always takes on positive values.

Example:

import tensorflow as tf
tf.