Skip to main content

ClikaRT::ops::bitwise_xor

function

bitwise_xor()

Tensor bitwise_xor(Tensor a, ScalarOrTensor other)

Elementwise bitwise XOR; dtype law as 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.

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