Skip to content
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

Fix dispatch of Elemwised ScalarLoop in Numba backend #1137

Merged
merged 1 commit into from
Jan 1, 2025

Conversation

ricardoV94
Copy link
Member

@ricardoV94 ricardoV94 commented Dec 26, 2024

Closes #1130


📚 Documentation preview 📚: https://pytensor--1137.org.readthedocs.build/en/1137/

@ricardoV94 ricardoV94 added bug Something isn't working numba labels Dec 26, 2024
Copy link

codecov bot commented Dec 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 82.12%. Comparing base (231a977) to head (de81599).
Report is 4 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1137      +/-   ##
==========================================
+ Coverage   82.10%   82.12%   +0.01%     
==========================================
  Files         185      185              
  Lines       48130    48127       -3     
  Branches     8669     8668       -1     
==========================================
+ Hits        39519    39524       +5     
+ Misses       6444     6438       -6     
+ Partials     2167     2165       -2     
Files with missing lines Coverage Δ
pytensor/link/numba/dispatch/elemwise.py 91.98% <100.00%> (-0.07%) ⬇️

... and 2 files with indirect coverage changes

@ricardoV94 ricardoV94 requested a review from aseyboldt December 26, 2024 12:41
@@ -348,13 +347,8 @@ def axis_apply_fn(x):

@numba_funcify.register(Elemwise)
def numba_funcify_Elemwise(op, node, **kwargs):
# Creating a new scalar node is more involved and unnecessary
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was not true (at least not anymore)

@ricardoV94 ricardoV94 merged commit 8cc489b into pymc-devs:main Jan 1, 2025
62 of 63 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working numba
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Numba dispatch of Elemwise of ScalarLoop is broken
2 participants