-
Notifications
You must be signed in to change notification settings - Fork 6.5k
Flax: Trickle down norm_num_groups
#789
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
Flax: Trickle down norm_num_groups
#789
Conversation
|
The documentation is not available anymore as the PR was closed or merged. |
patrickvonplaten
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great to me! Thanks @akash5474
|
Awesome! Thanks for the opportunity. I also ported a couple more tests from I'm happy to push those tests to this PR/branch or create a new one, do you have a preference? |
|
Thanks a lot for adding the tests! |
* pass norm_num_groups param and add tests * set resnet_groups for FlaxUNetMidBlock2D * fixed docstrings * fixed typo * using is_flax_available util and created require_flax decorator
* pass norm_num_groups param and add tests * set resnet_groups for FlaxUNetMidBlock2D * fixed docstrings * fixed typo * using is_flax_available util and created require_flax decorator
Summary
Addresses #621
Trickle down
norm_num_groupsand use it to replace hardcoded values inGroupNorm.Details
This PR makes the following changes:
num_groupsparam passed toGroupNormFlaxResnetBlock2DFlaxAttentionBlockFlaxDownEncoderBlock2DFlaxUpDecoderBlock2DFlaxUNetMidBlock2DNoneFlaxModelTesterMixinclass withtest_outputandtest_forward_with_norm_groupstestsFlaxAutoencoderKLTestsclass and sets up tests for modelrequire_flaxtesting util decoratorFlaxUpEncoderBlock2D=>FlaxUpDecoderBlock2Dadd_downsample=>add_upsampleinFlaxUpDecoderBlock2Dnorm_num_groupsdocstring default value inFlaxEncoder