Open CarloLucibello opened 3 years ago
This now seems to work, maybe should become a test:
julia> x = (; a=1, b=2)
(a = 1, b = 2)
julia> map(sqrt, x)
(a = 1.0, b = 1.4142135623730951)
julia> gradient(x -> map(sqrt, x).a, x)
((a = 0.5, b = nothing),)
(@v1.9) pkg> st Zygote ChainRules
Status `~/.julia/environments/v1.9/Project.toml`
⌃ [082447d4] ChainRules v1.39.0
[e88e6eb3] Zygote v0.6.41