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 | 1460 | January 24, 2022 | |
| Zygote dozens* of times slower than manually written function | 17 | 1923 | April 21, 2022 | |
| Compute gradient of gradient norm using zygote | 17 | 2182 | August 26, 2022 | |
| Ambiguous method bug in ReverseDiff | 6 | 228 | May 9, 2023 | |
| Wrong gradient from Zygote? | 13 | 828 | November 14, 2023 |