<br />

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)

<br />

    tf.math.logical_not(
        x: Annotated[Any, https://www.tensorflow.org/api_docs/python/tf/raw_ops/Any],
        name=None
    ) -> Annotated[Any, https://www.tensorflow.org/api_docs/python/tf/raw_ops/Any]

### Used in the notebooks

| Used in the tutorials |
|---|
| - [Private Heavy Hitters](https://www.tensorflow.org/federated/tutorials/private_heavy_hitters) |

#### 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 />