-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for alternative automatic differentiation backends (#11)
* Add JAX differential operators for JAX backend * Initial generalization of autodiff fallback to allow different backends * Add missing VJP and value operator to Autograd wrapper * Complete JAX differential operators Deals with detupleifying VJPs and removes internal jitting * Feed through backend in to systems and wrap base functions * Add SymNum backend option * Set default backend dynamically based on availability * Remove unused imports * Rename and add optional dependency groups * Update README example to SymNum + update autodiff support description * Reformat badges * Add new lines around badges div * Remove use of vectorization trick in autograd diffops * Add autodiff tests * Make autodiff subpackage + add details of backends to docstring * Correct name of nested function * Remove use of unary_to_nary in autograd wrapper * Install jax and symnum in tox tests environment * Enable JAX x64 mode in tests * Remove strict keyword from zip * Remove strict argument from zip * Explicitly set None backend in interop functions * Bump minimum SymNum version * Drop Python 3.9 support and add Python 3.12 to test matrix * Default to no autodiff backend
- Loading branch information
1 parent
7f5c73e
commit ea4adee
Showing
13 changed files
with
1,166 additions
and
305 deletions.
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
Oops, something went wrong.