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
Notice that in this particular example, no derivatives with respect to inputs of jacobian are requested, so it could be ignored. But Zygote does not automatically know this.
julia>functionf(x, bias)
grad = Zygote.gradient(x->sum(x.^3), x)[1]
return grad .* x .+ bias
end
julia> Zygote.gradient(b ->sum(f(x,b)), rand(3))
(Fill(1.0, 3),)
The text was updated successfully, but these errors were encountered: