tf.keras.backend.tanh

TensorFlow 2 version View source on GitHub

Element-wise tanh.

x A tensor or variable.

A tensor.