tensor.bitwise_xor
#tensor.bitwise_xor
Computes the bitwise XOR of two tensors element-wise. The input tensors must have either:
Exactly the same shape
The same number of dimensions and the length of each dimension is either a common length or 1.
Args
self
(@Tensor<T>
) - The first tensor to be comparedother
(@Tensor<T>
) - The second tensor to be compared
Panics
Panics if the shapes are not equal or broadcastable
Returns
A new Tensor<T>
with the same shape as the broadcasted inputs.
Example
Last updated