<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#L9353-L9366) |

Compute the truth value of `x1 XOR x2`, element-wise.

#### View aliases


**Main aliases**

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

<br />

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

<br />

<br />

<br />

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

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| Output boolean tensor. ||

<br />