This repository was archived by the owner on Dec 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
Numba speedup for wiring + log potentials #133
Merged
antoine-dedieu
merged 19 commits into
vicariousinc:master
from
antoine-dedieu:numba_speedup
Apr 8, 2022
Merged
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
3436f1f
Numba wiring + log potentials
antoine-dedieu 51da488
Docstring + ready for PR
antoine-dedieu a159f1a
Change categorical case
antoine-dedieu 064bbcd
Docstring
antoine-dedieu 9f06ca5
Coverage
antoine-dedieu d49ed45
All tests passing
antoine-dedieu cca829c
Pytest environment
antoine-dedieu ed658c3
Docstring mutation
antoine-dedieu 88a7ae8
Type hints
antoine-dedieu e8318f7
Stannis comment
antoine-dedieu 6918338
Remove compile wiring arguments
antoine-dedieu 1a70ac8
Remove inference arguments
antoine-dedieu 61c979f
Coverage
antoine-dedieu eef835b
Minor
antoine-dedieu c66ecd8
Get rid of special processing inside SingleFactorGroup
StannisZhou 9f48bd9
Mypy
StannisZhou 2fa9967
Check to make sure compile_wiring is implemented
StannisZhou ba25c51
Final comment
antoine-dedieu 04d62bb
Coverage
antoine-dedieu 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 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 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 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.
Is there a reason you make the caller allocate these arrays? In general t's cleaner and less likely to result in error to allocate return arrays inside numba rather that mutating a passed in array. You can get a very small optimization by re-using arrays between calls (so highly performance sensitive code it can be useful), but you're not doing that here. You can refer to dtype of incoming arrays as well and copy that.