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([False, True, False, True])
b = torch.tensor([False, True, True, False])
print(torch.bitwise_xor(a, b))  # False, False, True, True
print(a - b)  # Equivalent operation
Parameters:
Returns:

dragon.vm.torch.Tensor – The output tensor.