You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can't manage to get an actual bug out of this, presumably because the StaticArrays extension of ForwardDiff overloads the vulnerable parts I've tried. But for ReverseDiff this does lead to wrong behavior
The DiffResults documentation clearly states that whenever a
DiffResult
object is used, it must be realiased at the end of the function call:See for instance the docstrings in https://juliadiff.org/DiffResults.jl/stable/#Mutating-a-DiffResult, or the issue DiffResults#17
This is not done by ForwardDiff, for instance here:
ForwardDiff.jl/src/gradient.jl
Lines 35 to 44 in 42b1554
Am I right in deducing that it can lead to incorrectness?
The text was updated successfully, but these errors were encountered: