Watch talks from the 2019 TensorFlow Dev Summit Watch now

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.