-
Notifications
You must be signed in to change notification settings - Fork 57
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 function in thunk to be type rather than instance #678
Conversation
Codecov ReportPatch coverage:
📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more Additional details and impacted files@@ Coverage Diff @@
## main #678 +/- ##
==========================================
- Coverage 73.42% 72.25% -1.18%
==========================================
Files 18 18
Lines 6906 6948 +42
==========================================
- Hits 5071 5020 -51
- Misses 1835 1928 +93
... and 3 files with indirect coverage changes Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report in Codecov by Sentry. |
|
||
Like [`autodiff_deferred`](@ref) but will try to extend f to an annotation, if needed. | ||
""" | ||
@inline function autodiff_deferred(mode::CMode, f::F, args...) where {F, CMode<:Mode} |
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.
CMode
?
forward = thunk(fn, dfn, Const, Tuple{}, Val(API.DEM_ForwardMode), width, Val((false,))) | ||
|
||
forward = thunk(Duplicated{Core.Typeof(fn)}, Const, Tuple{}, Val(API.DEM_ForwardMode), width, Val((false,))) | ||
ft = Duplicated(fn, dfn) |
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 ain't a function type.
Co-authored-by: Valentin Churavy <vchuravy@users.noreply.github.com>
No description provided.