Add more sparse math Ops in numba#1918
Conversation
b836c1f to
01b40cf
Compare
…ll of its dispatches
622c700 to
93adb10
Compare
13f26ab to
810b3b7
Compare
|
There are tests for DetailsI'm exploring if this is because I need to upcast anything before doing math operations in the numba implementation. |
|
Python's implementation of Something similar occurs with As far as I understand, the rewrites will not be triggered for the numba backend. What's more, in the numba backend, the implementations are already in their specialized forms, so I don't think they'll be needed. Useful links to mentioned parts: Usmm pytensor/pytensor/sparse/math.py Lines 2045 to 2066 in 03afa5b pytensor/pytensor/sparse/rewriting.py Lines 925 to 964 in 03afa5b SamplingDot pytensor/pytensor/sparse/math.py Lines 1809 to 1821 in 03afa5b pytensor/pytensor/sparse/rewriting.py Lines 2042 to 2067 in 03afa5b |
|
@ricardoV94, now the same test fails with the default. I'm not sure what's the approach to follow here. Two ideas come to my mind:
Given how |
Description
This PR implements the following sparse ops in numba:
SparseSparseMultiplyAddSSAddSDAddSSDataStructuredAddSVUsmmSamplingDotMost of the initial implementations were done by Codex, I checked and adapted them as needed.
Checklist
Type of change