You may find this discussion relevant, has a lot of nice suggestions:
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Autodiff-ing a function defined by the result of Roots.find_zero fails | 12 | 842 | September 29, 2022 | |
| Nested and different AD methods altogether: How to add AD calculations inside my loss function when using neural differential equations? | 9 | 1050 | September 28, 2024 | |
| How to autodifferentiate the results of NLsolve? | 24 | 2577 | March 8, 2023 | |
| Automatic differentiation of loglikelihood function. Am I doing it right? | 5 | 316 | September 8, 2025 | |
| Nested AD with Lux etc | 26 | 1420 | May 1, 2024 |