tf.keras.ops.tanh

Hyperbolic tangent, element-wise.

Main aliases

tf.keras.ops.numpy.tanh

x Input tensor.

Output tensor of same shape as x.