---
title: "ClikaRT::ops::bitwise_or"
sidebar_label: "bitwise_or"
description: "Elementwise bitwise OR; dtype law as bitwise_and. the broadcast-shaped OR at the operands' shared dtype."
---

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

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

## bitwise\_or() {#bitwise_or}

<div class="api-signature">

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

</div>

Elementwise bitwise OR; dtype law as [`bitwise_and`](./bitwise_and.md#bitwise_and).

**Returns:** the broadcast-shaped OR at the operands' shared dtype.

**Throws**

- `ClikaRT::Error`: (`INVALID_ARGUMENT`) when the operand dtypes differ, for a floating-point operand, or broadcast-incompatible shapes.

<div class="api-declared">

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

</div>
