bitwise_xor

dragon.vm.torch.bitwise_xor(
  input,
  other,
  out=None
)[source]

Compute the element-wise XOR bitwise operation.

\[\text{out} = \text{input} \oplus \text{other} \]

Examples:

a = torch.tensor([0, -1, 2, -3, 4])
b = torch.tensor([-4, 3, -2, 1, 0])
print(torch.bitwise_xor(a, b))  # [-4, -4, -4, -4, 4]
Parameters:
Returns:

dragon.vm.torch.Tensor The output tensor.