-
Notifications
You must be signed in to change notification settings - Fork 134
Blockwise improvements #532
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
Merged
ricardoV94
merged 14 commits into
pymc-devs:main
from
ricardoV94:faster_blockwise_mvnormal
Dec 10, 2023
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
ecf4e9b
Handle no-op Subtensors in rewrites
ricardoV94 0f1abc7
Do not pickle functions of Blockwise
ricardoV94 b155a00
Avoid creating useless squeezes and expand_dims
ricardoV94 d0b66a9
Remove assert in local_useless_alloc
ricardoV94 d15747d
Apply useless blockwise rewrite when there are only dummy batch dims
ricardoV94 5431080
Faster perform method for matmul
ricardoV94 1e687ad
Expand batched_vector_b_solve_to_matrix rewrite
ricardoV94 820928f
Simplify BatchedDot implementation
ricardoV94 8c58a2e
Specialize matmul to batched dot
ricardoV94 b9f6d1b
Vectorize ExtractDiag
ricardoV94 020cb46
Vectorize Subtensor without batched indices
ricardoV94 50997a7
Add rewrite for Blockwise with Alloc inputs
ricardoV94 048a209
Add rewrite to remove Blockwise of AdvancedIncSubtensor
ricardoV94 505882e
Better error for fallback of vectorize_node with non-tensor types
ricardoV94 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be prange instead of range? I don't know if we allow parallel computation in compiled numba code, or if doing so would even be useful/interesting.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know either. Also I am not sure how well that would play with further multiprocessing by the outside. We have quite some issues with Blas in PyMC because of that.
Perhaps @aseyboldt can weigh in?