Missed TensorFlow Dev Summit? Check out the video playlist. Watch recordings

tf.keras.backend.tanh

TensorFlow 1 version View source on GitHub

Element-wise tanh.

tf.keras.backend.tanh(
    x
)

Arguments:

  • x: A tensor or variable.

Returns:

A tensor.