---
title: "ClikaRT::ops::logical_or"
sidebar_label: "logical_or"
description: "Elementwise logical OR (non-Bool inputs read as != 0); output as eq. the broadcast-shaped Bool mask. ClikaRT::Error (INVALID_ARGUMENT) when the operand shapes are not broadcast-compatible."
---

<!-- Generated by tools/doxygen2mdx from Doxygen XML. Do not edit. -->

<span class="api-kind api-kind--function">function</span>

## logical\_or() {#logical_or}

<div class="api-signature">

[`Tensor`](../Tensor.md) **`logical_or`**([`Tensor`](../Tensor.md) `input`, [`Tensor`](../Tensor.md) `other`)

</div>

Elementwise logical OR (non-Bool inputs read as `!= 0`); output as [`eq`](./eq.md#eq).

**Returns:** the broadcast-shaped `Bool` mask.

**Throws**

- `ClikaRT::Error`: (`INVALID_ARGUMENT`) when the operand shapes are not broadcast-compatible.

<div class="api-declared">

Declared in `ClikaRT/compute/ops.h`, line 1794

</div>
