tf.math.logical_not

TensorFlow 1 version

Returns the truth value of NOT x element-wise.

Example:

tf.math.logical_not(tf.constant([True, False]))
<tf.Tensor: shape=(2,), dtype=bool, numpy=array([False,  True])>

x A Tensor of type bool. A Tensor of type bool.
name A name for the operation (optional).

A Tensor of type bool.