<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/keras-team/keras/tree/v3.15.1/keras/src/ops/numpy.py#L6590-L6603) |

Return `(x1 != x2)` element-wise.

#### View aliases


**Main aliases**

[`tf.keras.ops.numpy.not_equal`](https://www.tensorflow.org/api_docs/python/tf/keras/ops/not_equal)

<br />

    tf.keras.ops.not_equal(
        x1, x2
    )

<br />

<br />

<br />

| ## Args ||
|---|---|
| `x1` | First input tensor. |
| `x2` | Second input tensor. |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| Output tensor, element-wise comparison of `x1` and `x2`. ||

<br />