Why don't we overload the (in)equality operators? #84
ricardoV94
started this conversation in
General
Replies: 2 comments 2 replies
-
Yeah, this seems wrong. Not much to add other than that your logic makes sense to me, and that I was surprised it differed from numpy in this this pretty central way. |
Beta Was this translation helpful? Give feedback.
0 replies
-
I found the answer to my question quickly enough: hashing: https://groups.google.com/g/theano-dev/c/AtQtU4E-L40/m/dJT-HH5b9WMJ |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
This has always been one of my main pet-peeves with Theano/Aesara. We can use all the same NumPy overloadad operators (
>
,<
,>=
,~
,&
,^
) but not==
and!=
. I vaguely remember reading that the reason for this was that Theano-devs used equality for variable equality a lot in the internal code but that must certainly be better achieved withis
, no?Beta Was this translation helpful? Give feedback.
All reactions