Python wrappers
Public Python APIs implemented by this engine symbol.Element-wise bitwise OR.
Computes out[i] = a[i] | b[i] for every element. Defined on
integer and Bool dtypes; on Bool inputs this is equivalent to
logical OR.
Non-differentiable: no autograd node is registered.
Math
References
NumPy numpy.bitwise_or.
See Also
bitwise_and_op, bitwise_xor_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.