Normally, they should agree, so this can be a bug. An MWE replicating this would be helpful.
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Zero gradients with Zygote vs correct gradients with ReverseDiff using DiffEqFlux | 4 | 1463 | January 24, 2022 | |
| Zygote dozens* of times slower than manually written function | 17 | 1931 | April 21, 2022 | |
| Compute gradient of gradient norm using zygote | 17 | 2186 | August 26, 2022 | |
| Ambiguous method bug in ReverseDiff | 6 | 231 | May 9, 2023 | |
| Wrong gradient from Zygote? | 13 | 832 | November 14, 2023 |