tf.keras.ops.logical_not

Computes the element-wise NOT of the given input tensor.

Zeros are treated as False and non-zeros are treated as True.

x Input tensor.

Output tensor, element-wise logical NOT of the input.