tf.keras.activations.tanh_shrink

Tanh shrink activation function.

It is defined as:

f(x) = x - tanh(x).

x Input tensor.