-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
lax.root, a primitive for differentiable root finding #1339
Merged
Merged
Changes from 11 commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
0c3e9ce
sketch of root w/ parameterized solvers
mattjj 4952304
Finish filling out lax.root
shoyer 12509c9
Remove jax.api._custom_implicit_solve
shoyer ec192d0
root docstring
shoyer d737cc9
disclaimer about root as a low-level API
shoyer e7b2037
Fix encoding on Python 2
shoyer 9584dbe
docstring clarification
shoyer 0e5b5d3
Error checking for tree structures in root
shoyer 5d3910f
Tests for error checking in lax.root
shoyer db5b922
Test and fix higher order derivatives in root
shoyer bfd70b9
Relax tolerance (apparently needed on Travis)
shoyer ac90492
Add a linear solve test
shoyer b9ff208
fixes
shoyer 0f69e45
fix abstract eval rule
shoyer fd975b6
Merge branch 'master' into solvers
shoyer a44d8e9
restore altered jit test
shoyer 7eaca4d
WIP: remove solve
shoyer 5ca9f0a
Revert "WIP: remove solve"
shoyer 6fda7be
revert structure of lax.root
shoyer 8b1a60e
Revert hack from lax_linalg.py
shoyer 854aa28
notation
shoyer 760d696
error messages
shoyer 4b53ea2
slightly cleaner
shoyer 41d8a72
whitespace
shoyer 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
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
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.
I think this check is redundant because you already checked it when you formed
jaxpr
. It doesn't hurt to include though, other than taking up precious vertical space :)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.
We evaluated
f()
when we formed thejaxpr
, but notsolve()
. So I think we do need this. Actually I even wrote a test for that catches this error message :)