<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#L4968-L4988) |

Computes the element-wise logical OR of the given input tensors.

#### View aliases


**Main aliases**

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

<br />

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

Zeros are treated as `False` and non-zeros are treated as `True`.

<br />

<br />

<br />

| ## Args ||
|---|---|
| `x1` | Input tensor. |
| `x2` | Input tensor. |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| Output tensor, element-wise logical OR of the inputs. ||

<br />