-
-
Notifications
You must be signed in to change notification settings - Fork 153
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inconsistency in numba mode when passing scalar to function #1063
Comments
This is mostly due to Aesara's lack of support for built-in scalar types (e.g. Since Numba supports the built-in scalar types and uses/returns them wherever/whenever it's reasonable, we face the challenge of deciding whether or not to manually convert all outputs to We've essentially chosen the latter, because it's cumulatively more efficient, since it produces Numba implementations with fewer In this case, it looks like we might need to add another manual conversion somewhere, but, ideally, not the return values of our Numba implementations of |
If not touching the internals of the Numba implementation, how about applying In the docstring, one could then also specify the return type as aesara/aesara/compile/function/types.py Lines 816 to 820 in 5804607
Btw, I noticed the docstring says the return type is aesara/aesara/compile/function/types.py Lines 1067 to 1073 in 5804607
|
That's what I would consider performing the conversion outside of Numba, and I'm very hesitant to take such an approach, mostly because of the way it mixes concerns/contexts. The code in Moving further up the chain, even the Lines 666 to 673 in c8908e5
Since this code is in a base class (i.e. N.B. We can't use |
Yeah, we haven't started typing that module yet. It's important that we start doing that work, though. |
In numba mode:
In c mode:
This came up in pymc-devs/pymc#5937. Found by bherwerth.
The text was updated successfully, but these errors were encountered: