bitwise_xor¶
- paddle. bitwise_xor ( x, y, out=None, name=None ) [source]
- 
         It operates bitwise_xoron TensorXandY.\[Out = X ^\wedge Y\]Note paddle.bitwise_xorsupports broadcasting. If you want know more about broadcasting, please refer to user_guide_broadcasting.- Parameters
- 
           - x (Tensor) – Input Tensor of - bitwise_xor. It is a N-D Tensor of bool, uint8, int8, int16, int32, int64
- y (Tensor) – Input Tensor of - bitwise_xor. It is a N-D Tensor of bool, uint8, int8, int16, int32, int64
- out (Tensor) – Result of - bitwise_xor. It is a N-D Tensor with the same data type of input Tensor
 
- Returns
- 
           Result of bitwise_xor. It is a N-D Tensor with the same data type of input Tensor
- Return type
- 
           Tensor 
 Examples import paddle x = paddle.to_tensor([-5, -1, 1]) y = paddle.to_tensor([4, 2, -3]) res = paddle.bitwise_xor(x, y) print(res) # [-1, -3, -4] 
