tf.keras.backend.tanh

tf.keras.backend.tanh(x)

Defined in tensorflow/python/keras/backend.py.

Element-wise tanh.

Arguments:

  • x: A tensor or variable.

Returns:

A tensor.