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
julia>using Zygote
[ Info: Precompiling Zygote [e88e6eb3-aa80-5325-afca-941959d7151f]
julia>f(x) =2x +3
f (generic function with 1 method)
julia> Zygote.gradient(f,0)
(2,)
julia>f(x) =0
f (generic function with 1 method)
julia> Zygote.gradient(f,0) # should be 0
(2,)
The text was updated successfully, but these errors were encountered:
johnnychen94
changed the title
gradient not work when rewriting function definition
gradient(f,args...) not update when rewriting function
Oct 17, 2018
The text was updated successfully, but these errors were encountered: