tf.math.expm1

Computes exp(x) - 1 element-wise.

i.e. exp(x) - 1 or e^(x) - 1, where x is the input tensor. e denotes Euler's number and is approximately equal to 2.718281.

x = tf.constant(2.0)
tf.math.expm1(x) ==> 6.389056