tf.keras.ops.tanh

Hyperbolic tangent, element-wise.

x Input tensor.

Output tensor of same shape as x.