# tensorplay.functional.bitwise_xor Source: https://www.tensorplay.cn/docs/generated/tensorplay.functional.bitwise_xor.html ```python tensorplay.functional.bitwise_xor(input, other, *, out=None) → Tensor ``` Computes the bitwise XOR of input and other. The input tensor must be of integral or Boolean types. For bool tensors, it computes the logical XOR. Parameters: - input – the first input tensor - other – the second input tensor Keyword Arguments: out ([Tensor](/docs/generated/tensorplay.Tensor.html#tensorplay.Tensor), optional) – the output tensor. Example: ``` >>> tensorplay.bitwise_xor(tensorplay.tensor([-1, -2, 3], dtype=tensorplay.int8), tensorplay.tensor([1, 0, 3], dtype=tensorplay.int8)) tensor([-2, -2, 0], dtype=tensorplay.int8) >>> tensorplay.bitwise_xor(tensorplay.tensor([True, True, False]), tensorplay.tensor([False, True, False])) tensor([ True, False, False]) ```