-
Notifications
You must be signed in to change notification settings - Fork 129
Add missing numba ops #161
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
Comments
In |
I think replacing C is too lofty of a goal for now. Instead, we should focus on making all of PyMC work with numba. |
|
Doesn't it just default to the Python implementation? |
We don't have a LogSumExp last time I checked. It's built from other Ops, so we shouldn't need to implement it |
I want to shill the work I did on numba links for several linear algebra operations again: A core problem is that the |
@jessegrabowski Looks interesting! You're just linking to a commit, is that in main or is that part of an outstanding PR? What's the method you propose we integrate this? |
It's an outstanding PR that didn't garner any attention. I have no idea the best way to integrate it. I use this code in one of my own projects, where I just shoved it into a sub-module and added an entry point for the numba overloads into my |
@jessegrabowski I think we could just put that code in |
erfcx works for me, that was added here: #46 |
Hi @twiecki! When it comes to
By [EDIT] Opened a WIP PR for the latter: #172 |
@mtsokol That looks right -- thanks for opening a PR! |
Some cases of AdvancedSubtensor can be supported by clever reshaping, and indexing based on strides. Snippet we were using sometime ago, and pasted here completely out of context: x, y = design_matrix.nonzero()
*s1, s2, s3 = result.shape
return result.reshape(*s1, s2*s3)[..., x*s3 + y] |
Description
We're fairly close to having full Numba support, but a few important numba issues are missing. This is an incomplete list that we should complete and then make a push to add them.
Here is a tutorial on how to add them: https://pytensor.readthedocs.io/en/latest/extending/creating_a_numba_jax_op.html
slogdet
for Numba and JAX #172The text was updated successfully, but these errors were encountered: