Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

CarloLucibello
Copy link
Member

@CarloLucibello CarloLucibello commented Dec 1, 2022

Trying to fix #1293
With respect to master the case

gradient(2) do c
  d = Dict([i => i*c for i=1:3])
  return d[1] 
end

is now fixed, but I haven't cracked the generator case yet

gradient(2) do c
  d = Dict(i => i*c for i=1:3)
  return d[1] 
end

I've tried by composing pullbacks but so far it's been unsuccessful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Gradient fails for Dict constructed with a generator or a vector of pairs
1 participant