tf.keras.backend.tanh

tf.keras.backend.tanh(x)

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

Element-wise tanh.

Arguments:

  • x: A tensor or variable.

Returns:

A tensor.