tf.keras.ops.sign

Returns a tensor with the signs of the elements of x.

Main aliases

tf.keras.ops.numpy.sign

x Input tensor.

Output tensor of same shape as x.