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

fix nn.value_and_grad by implementing directly in core #3479

Merged
merged 1 commit into from
Nov 13, 2023

Conversation

levskaya
Copy link
Collaborator

There were some trivial but annoying empty pytree structure comparison conflicts in some edge cases the way it was implemented on top of nn.vjp before.

@codecov-commenter
Copy link

codecov-commenter commented Nov 13, 2023

Codecov Report

Merging #3479 (edad3e9) into main (e959dbf) will decrease coverage by 0.06%.
The diff coverage is 5.26%.

@@            Coverage Diff             @@
##             main    #3479      +/-   ##
==========================================
- Coverage   52.16%   52.10%   -0.06%     
==========================================
  Files          91       91              
  Lines       10954    10968      +14     
==========================================
+ Hits         5714     5715       +1     
- Misses       5240     5253      +13     
Files Coverage Δ
flax/linen/transforms.py 21.42% <0.00%> (+0.15%) ⬆️
flax/core/lift.py 10.59% <6.25%> (-0.16%) ⬇️

@copybara-service copybara-service bot merged commit 2f6e5ff into google:main Nov 13, 2023
19 checks passed
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.

2 participants