Hi there ! I’m a newcomer to Julia and Flux.
I don’t understand this return with gradient
Here’s my code:
f(x,y) = sum(x .- y)
g(x,y) = sum((x .- y).^2)
gradient(g, [1,2], [3,4])
The answer is
([-4, -4], [4, 4])
But now if I want this one
gradient(f, [1,2], [3,4])
The answer is
(Fill(1, 2), Fill(-1, 2))
What does Fill mean here ? I cant find anything on google.
Thanks a lot for your help