-
-
Notifications
You must be signed in to change notification settings - Fork 25
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
Change default derivative impl to reverse mode #170
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #170 +/- ##
==========================================
- Coverage 87.67% 87.40% -0.28%
==========================================
Files 100 100
Lines 15811 15812 +1
Branches 853 851 -2
==========================================
- Hits 13862 13820 -42
- Misses 1096 1141 +45
+ Partials 853 851 -2 ☔ View full report in Codecov by Sentry. |
8a89cae
to
481e62a
Compare
(throw | ||
(ex-info "Legendre Transform Failure: determinant = 0" | ||
{:F F :w w}))) | ||
(throw |
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.
removed extra println
J-func | ||
(Phi* ((D C) s)))) | ||
(s/compatible-shape s)))) | ||
(let [s-syms (s/compatible-shape s)] |
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.
this forces compatible-shape
to evaluate and make its gensym calls before the ((D C) s)
calls, important for repeatable tests
Change default derivative impl to reverse mode #170:
changes
D
andpartial
to use reverse mode automatic differentiation bydefault, and fixes all associated tests
adds
emmy.generic/{zero?,one?,identity?}
implementations (all false) toemmy.tape/Completed
, in case some collection type tries to simplify theseduring reverse-mode AD