-
-
Notifications
You must be signed in to change notification settings - Fork 216
Closed
Description
Maybe there is a catch that is not getting updated when a function is redefined?
Code:
using Zygote;
g(x) = 2x;
@show g'(10);
g(x) = 3x;
@show g'(10);
Expected output is 2, then 3
Actual output is 2, then 2 again.
Demo:
julia> using Zygote;
julia> g(x) = 2x;
julia> @show g'(10);
(g')(10) = 2
julia> g(x) = 3x;
julia> @show g'(10);
(g')(10) = 2
Metadata
Metadata
Assignees
Labels
No labels