-
Notifications
You must be signed in to change notification settings - Fork 16
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
Return primal value in pushforward!
and pullback!
#17
Conversation
@gdalle any idea why BenchmarkCI fails to write a comment with the benchmark results? |
No the GitHub token has read and write permissions |
I think it might have the wrong permissions in your fork |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #17 +/- ##
==========================================
- Coverage 82.92% 82.90% -0.03%
==========================================
Files 6 9 +3
Lines 82 117 +35
==========================================
+ Hits 68 97 +29
- Misses 14 20 +6 ☔ View full report in Codecov by Sentry. |
Running the benchmarks locally, I obtain:
|
Looks like the use of All other backends return the primal result at no significant additional cost. |
I'll review next week sorry |
JET doesn't like the empty fallback functions that are only defined in the package extensions:
How do we best fix this? |
Just making a few tweaks and then I'll merge |
Both ForwardDiff and ReverseDiff reexport DiffResults, so I'm not sure the extra trigger is necessary. |
I know but it's another package and not a submodule, so it's clearer to me that way Also they don't guarantee the re-export in the docs so theoretically it can disappear any moment |
The way I see things, it's a common submodule shared by Forward- and ReverseDiff. But I agree with the non-guaranteed re-export sentiment. |
Adds two lower level functions:
that are called by
pushforward!
andpullback!
and additionally return the primal valuey = f(x)
.