tf.keras.backend.sign

TensorFlow 2 version View source on GitHub

Element-wise sign.

x Tensor or variable.

A tensor.