---
title: "ClikaRT::ops::bitwise_xor"
sidebar_label: "bitwise_xor"
description: "Elementwise bitwise XOR; dtype law as bitwise_and. the broadcast-shaped XOR 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\_xor() {#bitwise_xor}

<div class="api-signature">

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

</div>

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

**Returns:** the broadcast-shaped XOR 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 1688

</div>
