Skip to content

Document default values in normalization layer docstrings - #3819

Merged
zcbenz merged 1 commit into
ml-explore:mainfrom
Pablosinyores:doc/norm-layer-defaults
Jul 10, 2026
Merged

zcbenz merged 1 commit into
ml-explore:mainfrom
Pablosinyores:doc/norm-layer-defaults

Conversation

@Pablosinyores

Copy link
Copy Markdown
Contributor

The LayerNorm, RMSNorm and GroupNorm docstrings list eps, affine and bias without their default values, unlike BatchNorm and InstanceNorm in the same module which do.

This adds the missing Default: annotations so the docstrings match the constructor signatures and the surrounding convention:

  • LayerNorm: eps=1e-5, affine=True, bias=True
  • RMSNorm: eps=1e-5
  • GroupNorm: eps=1e-5, affine=True, pytorch_compatible=False

Docs only, no behavior change.

LayerNorm, RMSNorm and GroupNorm did not list the default values for
eps/affine/bias in their docstrings, unlike BatchNorm and InstanceNorm
in the same module. Add the missing Default annotations so they match
the signatures and the surrounding convention.

@zcbenz zcbenz left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@zcbenz
zcbenz merged commit a3d7e69 into ml-explore:main Jul 10, 2026
28 checks passed
@BrewTestBot BrewTestBot mentioned this pull request Aug 18, 2026
1 task done
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.

2 participants