-
Notifications
You must be signed in to change notification settings - Fork 112
make it work with ForwardDiff v1 #614
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
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #614 +/- ##
==========================================
+ Coverage 87.07% 87.74% +0.66%
==========================================
Files 28 28
Lines 1888 1811 -77
==========================================
- Hits 1644 1589 -55
+ Misses 244 222 -22 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
It turns out that it's possible to keep the julia lower bound at 1.6. There are, however, failing tests for 1.6 than for 1.11, so it may still be worth bumping the compatibility requirement. It's just not required to fix compatibility with forward diff. |
mkitti
left a comment
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.
The main thing I need to clarify here is the dependency on ForwardDiff. It seems to be both a regular (strong?) dependency and a weak dependency. If this is about compatibility with 1.6, I would prefer to drop 1.6 support in favor of 1.9 with extensions.
I would normally prefer formatting changes to be made in independent pull requests, but I think the amount of such changes in tolerable at the moment.
Project.toml
Outdated
| Adapt = "79e6a3ab-5dfb-504d-930d-738a2a938a0e" | ||
| AxisAlgorithms = "13072b0f-2c55-5437-9ae7-d433b7a33950" | ||
| ChainRulesCore = "d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4" | ||
| ForwardDiff = "f6369f11-7733-5829-9624-2563aa707210" |
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.
Why is ForwardDiff both a strong dep and a weak dep?
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 was in error. Fixed, and restricted Julia version to >= 1.9.
| A2 = rand(Float64, nx, nx) * 100 | ||
|
|
||
| # random array and vector to store gradient | ||
| A2 = rand(Float64, 3, 3) * 100 |
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.
Why is this hard coded at 3 now?
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.
Just to make the test less noisy if it fails. There's no particular reason that it had to be nx and I don't there there are any conditions that are hit with 10 points that aren't with 3. That said, I'm happy to change back. It is not an important change.
This works, but it's not ready to merge because a decision needs to be made RE. See my comment in #611.