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

Treat pairs(NamedTuple) as NamedTuple for indexing #1286

Merged
merged 1 commit into from
Aug 15, 2022

Conversation

ToucheSir
Copy link
Member

This prevents issues with double-counting when using kwargs.

A note on test changes: A couple which were returning natural tangents for unused numeric fields are now returning nothing. I've opted not to try projecting those nothings to the original number type after seeing the feedback on JuliaDiff/ChainRulesCore.jl#574, but perhaps not doing so causes deleterious effects downstream?

Fixes #1284.

This prevents issues with double-counting when using kwargs.
@ToucheSir ToucheSir closed this Aug 15, 2022
@ToucheSir ToucheSir reopened this Aug 15, 2022
@ToucheSir ToucheSir merged commit c335d6d into master Aug 15, 2022
@ToucheSir ToucheSir deleted the bc/pairs-kwarg-indexing branch August 15, 2022 23:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Wrong gradient involving splatting of kwargs
2 participants