Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pullbacks for dict constructors #1335

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

pullbacks for dict constructors #1335

wants to merge 2 commits into from

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