Python wrappers
Public Python APIs implemented by this engine symbol.Element-wise bitwise XOR.
Computes out[i] = a[i] ^ b[i] for every element. Defined on
integer and Bool dtypes; on Bool inputs this is equivalent to
logical exclusive-or.
Non-differentiable: no autograd node is registered.
Math
References
NumPy numpy.bitwise_xor.
See Also
bitwise_and_op, bitwise_or_op
Parameters
a, bTensorImplPtrOperands of identical shape, integer-or-Bool dtype, and device.
Returns
TensorImplPtrTensor of the same shape and dtype as the inputs.
Raises
LucidErrorIf shapes/devices differ, or if the input dtype is not integer or Bool.