tf.keras.ops.sign

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

x Input tensor.

Output tensor of same shape as x.