mindspore.ops.BitwiseXor
- class mindspore.ops.BitwiseXor[source]
Returns bitwise xor of two tensors element-wise.
Refer to
mindspore.ops.bitwise_xor()
for more details.- Supported Platforms:
Ascend
CPU
GPU
Examples
>>> x = Tensor(np.array([0, 0, 1, -1, 1, 1, 1]), mindspore.int16) >>> y = Tensor(np.array([0, 1, 1, -1, -1, 2, 3]), mindspore.int16) >>> bitwise_xor = ops.BitwiseXor() >>> output = bitwise_xor(x, y) >>> print(output) [ 0 1 0 0 -2 3 2]