-
Notifications
You must be signed in to change notification settings - Fork 140
Implement as_jax_op #1614
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
Open
aseyboldt
wants to merge
27
commits into
pymc-devs:main
Choose a base branch
from
aseyboldt:as-jax-opt2
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Implement as_jax_op #1614
Changes from 19 commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
9cb5e82
first commit for a decorator that transforms JAX to pytensor
jdehning d3a277e
Add more tests
jdehning 5914162
Define JAXOp outside of the decorator
jdehning b810e99
Added comment regarding flattening of inputs
jdehning df76e73
Add as_jax_op to pytensor.__init__.py and to documentation
jdehning c2338fb
Add [jax] requirement to readthedocs in order to read the docstring o…
jdehning 89474ae
Added an example to the docstring of as_jax_op
jdehning 4e2e005
Use infer_static_shape, currently still with the possibility to use t…
jdehning e6b52d6
Remove `sol` in variable names
jdehning abf99f1
Rename tests and make static variables test more meaningfull
jdehning 21d252d
More test renaming, forgot a few
jdehning 7291696
Refactoring of ops.py: code is in general cleaner, and JAXOp can now …
jdehning 3e2949d
Clean up tests
jdehning 38b17b5
Add to some tests a direct call to JAXOp
jdehning bb75938
temporary as_jax_op fix
aseyboldt d04f41d
Simplify as_jax_op
aseyboldt 8ecf45c
optionally eval shapes in as_jax_op
aseyboldt abd668b
minor coding style changes in as_jax_op
aseyboldt fcff09b
set output shape to None if not statically known in as_jax_op
aseyboldt 866b4ba
clean up global import
aseyboldt 0ae53a0
remove name from JaxOp.__props__
aseyboldt 07a2c43
don't compile in shape eval of as_jax_op
aseyboldt f832126
more tests for as_jax_op
aseyboldt bf2d0b3
changes based on review
aseyboldt 1e93af9
rename as_jax_op to wrap_jax
aseyboldt 10d2097
remove equinox dependency
aseyboldt fceed2c
rename as_op to wrap_py
aseyboldt 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,4 +25,4 @@ dependencies: | |
- ablog | ||
- pip | ||
- pip: | ||
- -e .. | ||
- -e ..[jax] |
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.
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.
Uh oh!
There was an error while loading. Please reload this page.