Should we stop overloading NumPy altogether? #802
Replies: 3 comments 1 reply
-
I do some benefit, it mostly works with just simple functions with |
Beta Was this translation helpful? Give feedback.
-
We need to do a lot more to make it actually work. There's a very narrow space where it's usable, and, due to that, the feature is more confusing than not. A good example is |
Beta Was this translation helpful? Give feedback.
-
It can be convenient for an array implementation to Just Work with the numpy methods but if it sometimes does the wrong thing that would be very bad. IIUC you can implement |
Beta Was this translation helpful? Give feedback.
-
Overloading NumPy functions when the input are TensorVariables is cute, but I think confusing as soon as a user tries to use a function that is not implemented or requires a different API (like set_subtensor)
From what I see around it seems that knowledgeable users don't rely on this at all and it's beginners who use it, usually by accident. I think it's more harmful than helpful.
Beta Was this translation helpful? Give feedback.
All reactions