TensorFlow 2.0 Beta is available Learn more

tf.keras.backend.tanh

TensorFlow 2.0 version View source on GitHub

Element-wise tanh.

Aliases:

  • tf.compat.v1.keras.backend.tanh
  • tf.compat.v2.keras.backend.tanh
tf.keras.backend.tanh(x)

Arguments:

  • x: A tensor or variable.

Returns:

A tensor.