tf.keras.backend.tanh

TensorFlow 1 version View source on GitHub

Element-wise tanh.

x A tensor or variable.

A tensor.