tf.keras.backend.sign

tf.keras.backend.sign(x)

Defined in tensorflow/python/keras/backend.py.

Element-wise sign.

Arguments:

  • x: Tensor or variable.

Returns:

A tensor.