Skip to main content

ClikaRT::ops::logical_xor

function

logical_xor()

Tensor logical_xor(Tensor a, Tensor b)

Elementwise logical XOR (non-Bool inputs read as != 0); output as eq.

Returns: the broadcast-shaped Bool mask.

Throws

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

Declared in ClikaRT/compute/ops.h, line 1739