-
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add forward, reverse-mode AD operators, enable tests for reverse-mode (…
…#185) - adds a dynamic variable `emmy.calculus.derivative/*mode*` that allows the user to switch between forward and reverse mode automatic differentiation - adds a new `emmy.calculus.derivative/gradient` that acts like `emmy.tape/gradient` but is capable of taking multiple variables - adds new operators `emmy.calculus.derivative/{D-forward, D-reverse}` and operator-returning-functions `emmy.calculus.derivative/{partial-forward, partial-reverse}` that allow the user to explicitly invoke forward-mode or reverse-mode automatic differentiation. `D` and `partial` still default to forward-mode - modifies `emmy.tape/gradient` to correctly error when passed invalid selectors, just like `emmy.dual/derivative`.
- Loading branch information
Showing
4 changed files
with
192 additions
and
54 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