tf.compat.v1.math.softplus

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

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

Example:

import tensorflow as tf
tf.math.softplus(tf.range(0, 2, dtype=tf.float32)).numpy()
array([0.6931472, 1.3132616], dtype=float32)

features Tensor
name Optional: name to associate with this operation.

Tensor