Returns the truth value of NOT x
element-wise.
View aliases
Compat aliases for migration
See Migration guide for more details.
tf.raw_ops.LogicalNot(
x, name=None
)
Example:
tf.math.logical_not(tf.constant([True, False]))
<tf.Tensor: shape=(2,), dtype=bool, numpy=array([False, True])>
Returns | |
---|---|
A Tensor of type bool .
|