# tf.math.logical_not

<br />

|---|
| [![](https://www.tensorflow.org/images/tf_logo_32px.png) TensorFlow 2 version](https://www.tensorflow.org/api_docs/python/tf/math/logical_not) |

Returns the truth value of NOT x element-wise.

#### View aliases


**Main aliases**

[`tf.logical_not`](https://www.tensorflow.org/api_docs/python/tf/math/logical_not)
**Compat aliases for migration**

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

[`tf.compat.v1.logical_not`](https://www.tensorflow.org/api_docs/python/tf/math/logical_not), [`tf.compat.v1.math.logical_not`](https://www.tensorflow.org/api_docs/python/tf/math/logical_not), \`tf.compat.v2.logical_not\`, \`tf.compat.v2.math.logical_not\`

<br />

    tf.math.logical_not(
        x, name=None
    )

<br />

<br />

<br />

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

<br />

<br />

<br />

<br />

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

<br />