# tf.math.logical_or

<br />

|---|
| [![](https://www.tensorflow.org/images/tf_logo_32px.png) TensorFlow 1 version](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/math/logical_or) |

Returns the truth value of x OR y element-wise.

#### View aliases


**Main aliases**

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

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

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

<br />

    tf.math.logical_or(
        x, y, name=None
    )

> [!NOTE]
> **Note:** [`math.logical_or`](https://www.tensorflow.org/versions/r2.0/api_docs/python/tf/math/logical_or) supports broadcasting. More about broadcasting [here](http://docs.scipy.org/doc/numpy/user/basics.broadcasting.html)

<br />

<br />

<br />

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

<br />

<br />

<br />

<br />

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

<br />