Python wrappers
Public Python APIs implemented by this engine symbol.Element-wise inequality comparison.
Computes out[i] = (a[i] != b[i]) and returns the result as a Bool
tensor. Logical complement of equal_op.
Non-differentiable: no autograd node is registered.
Math
References
NumPy numpy.not_equal.
See Also
equal_op
Parameters
a, bTensorImplPtrOperands of identical shape, dtype, and device.
Returns
TensorImplPtrBool tensor with the same shape as the inputs.
Raises
LucidErrorIf the operand shapes, dtypes, or devices differ.