-
Notifications
You must be signed in to change notification settings - Fork 26
Support ADTypes.NoAutoDiff #851
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
base: main
Are you sure you want to change the base?
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #851 +/- ##
==========================================
- Coverage 98.10% 96.19% -1.92%
==========================================
Files 134 134
Lines 7986 7982 -4
==========================================
- Hits 7835 7678 -157
- Misses 151 304 +153
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
95ba522
to
7e44a45
Compare
@gdalle is this Ok like this? |
I fixed the Enzyme CI error, can you integrate the latest changes from |
7e44a45
to
3930398
Compare
Done now - is this Ok? |
Test failures are unrelated, right? |
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.
If you can just take my small nitpick into account and fill the changelog, we're good to go!
""" | ||
check_inplace(backend) | ||
|
||
Check whether `backend` supports differentiation of in-place functions and return a `Bool`. | ||
""" | ||
check_inplace(backend::AbstractADType) = Bool(inplace_support(backend)) | ||
|
||
check_inplace(::ADTypes.NoAutoDiff) = throw(ADTypes.NoAutoDiffSelectedError()) |
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.
Could you put this one level higher, inside the inplace_support
trait?
Requires SciML/ADTypes.jl#126