This is just the same question and answer as Using Flux: gradient on DifferentialEquations: solve results in an error and https://www.reddit.com/r/Julia/comments/u4qgxc/flux_gradient_cant_differentiate_a_function/.
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Using Flux: gradient on DifferentialEquations: solve results in an error | 11 | 1057 | May 8, 2023 | |
| Flux differentiation error | 19 | 1799 | November 19, 2020 | |
| Calculate gradient of UDE model (without DiffEqFlux.sciml_train) | 3 | 745 | November 6, 2020 | |
| Gradient error in Flux model inputs | 5 | 1367 | January 13, 2021 | |
| DifferentialEquations.jl + Flux.jl or Knet.jl | 15 | 3686 | October 18, 2018 |