-
Notifications
You must be signed in to change notification settings - Fork 6
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
Automatic Differentiation Compatibility #7
Conversation
@ronisbr Here is the next update for the autodiff work. Don't run the tests yet, they will fail due to some issue in DifferentiationInterface.jl (See JuliaDiff/DifferentiationInterface.jl#525) But just to get some eyes on the new code in the meantime in case changes are needed. |
@ronisbr Ok, the issue was resolved, tests are passing and PR is ready for a full review whenever you have time |
Hi @jmurphy6895 ! Thank you very much, I will take more time to analyze this because since it changes the return type of some functions, it might be breaking. If this modification breaks our current code on production, unfortunately we will need to postpone it a little bit until I have time to update everything. |
Sounds good, definitely understand. If it does break things, let me know if there's anything I can do to help |
Hi @jmurphy6895 Just one feedback (sorry for the delay). Unfortunately the return type change caused a lot of errors in our algorithms :( I did not investigate to check if those are easy fixes or not. One question: can we somehow add autodiff without this modification? |
Hey @ronisbr, let me run some experiments, I think might have an idea or two, probably won't be able to track them down until this weekend or next week though |
@ronisbr I reverted the return types and have a work-around with array comprehensions, it's a touch awkward and I do think that it makes sense for the geodetic_geocentric to be consistent with return types eventually -- some already return SVectors and other Tuples -- so it works for you I'm going to submit an issue to deal with it later, but its not blocking at the moment. |
Hi @jmurphy6895 ! Excellent! The design we selected was to use |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #7 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 30 29 -1
Lines 1164 1170 +6
=========================================
+ Hits 1164 1170 +6 ☔ View full report in Codecov by Sentry. |
Thanks @jmurphy6895 ! |
Added support for automatic differentiation capabilities with minor typing changes and a few convenience functions.
Added tests to check for compatibility with ForwardDiff.jl via DifferentiationInterface.jl