File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -698,11 +698,23 @@ def ge(a, b):
698
698
699
699
700
700
def eq (a , b ):
701
- """Elementwise equality comparison, `a == b`."""
701
+ """Elementwise equality comparison, `a == b`.
702
+
703
+ Notes
704
+ -----
705
+ Due to Python rules, it is not possible to correctly overload the equality symbol `==` for hashable objects,
706
+ so `eq` must always be used to compute the Elemwise equality of TensorVariables (which are hashable).
707
+ """
702
708
703
709
704
710
def neq (a , b ):
705
- """Elementwise inequality comparison, `a != b`."""
711
+ """Elementwise inequality comparison, `a != b`.
712
+
713
+ Notes
714
+ -----
715
+ Due to Python rules, it is not possible to overload the non-equality symbol `!=` for hashable objects,
716
+ so `neq` must always be used to compute the Elemwise non-equality of TensorVariables (which are hashable).
717
+ """
706
718
707
719
708
720
def isnan (a ):
You can’t perform that action at this time.
0 commit comments