Missed TensorFlow World? Check out the recap. Learn more

tf.keras.backend.sign

TensorFlow 2 version View source on GitHub

Element-wise sign.

Aliases:

tf.keras.backend.sign(x)

Arguments:

  • x: Tensor or variable.

Returns:

A tensor.