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

add Module.module_paths #3654

Merged
merged 1 commit into from
Jan 25, 2024
Merged

add Module.module_paths #3654

merged 1 commit into from
Jan 25, 2024

Conversation

cgarciae
Copy link
Collaborator

@cgarciae cgarciae commented Jan 24, 2024

What does this PR do?

Adds a Module.module_paths method that returns a mapping between paths and copies of unbound Module instances. module_paths behaves similarly to tabulate, they both use the same machinery from the summary module.

@codecov-commenter
Copy link

Codecov Report

Attention: 3 lines in your changes are missing coverage. Please review.

Comparison is base (70abeef) 56.25% compared to head (a638b16) 56.25%.
Report is 1 commits behind head on main.

Files Patch % Lines
flax/linen/module.py 25.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3654      +/-   ##
==========================================
- Coverage   56.25%   56.25%   -0.01%     
==========================================
  Files         101      101              
  Lines       12177    12183       +6     
==========================================
+ Hits         6850     6853       +3     
- Misses       5327     5330       +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@copybara-service copybara-service bot merged commit 0f0a65f into main Jan 25, 2024
21 checks passed
@copybara-service copybara-service bot deleted the module_paths branch January 25, 2024 12:34
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.

3 participants