# tf.raw_ops.LogicalNot

<br />

Returns the truth value of `NOT x` element-wise.

#### View aliases


**Compat aliases for migration**

See
[Migration guide](https://www.tensorflow.org/guide/migrate) for
more details.

[`tf.compat.v1.raw_ops.LogicalNot`](https://www.tensorflow.org/api_docs/python/tf/raw_ops/LogicalNot)

<br />

    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])>

<br />

<br />

<br />

| ## Args ||
|---|---|
| `x` | A `Tensor` of type `bool`. A `Tensor` of type `bool`. |
| `name` | A name for the operation (optional). |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| A `Tensor` of type `bool`. ||

<br />