Normally, they should agree, so this can be a bug. An MWE replicating this would be helpful.
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
ReverseDiff for loss function with Zygote derivatives | 1 | 399 | February 10, 2023 | |
Taking gradients in Julia | 7 | 2039 | September 28, 2021 | |
Hessian matrix of ML model | 9 | 2199 | April 28, 2021 | |
Avoiding redundant computation when using Zygote and ForwardDiff for forward-over-reverse hessians | 4 | 53 | March 12, 2025 | |
Taking gradients of a matrix exponential | 10 | 909 | January 2, 2024 |