Skip to content

Commit 214e4ce

Browse files
malfetpytorchmergebot
authored andcommitted
Fix RMSNorm doc rendering (pytorch#154205)
By removing `::func::` decorator which adds unneeded parenthesis Test plan: Check https://docs-preview.pytorch.org/pytorch/pytorch/154205/generated/torch.nn.RMSNorm.html#rmsnorm that now renders as <img width="704" alt="image" src="https://github.com/user-attachments/assets/443f605d-75a6-41ef-8971-21e7dc8ef9f6" /> Fixes pytorch#154184 Pull Request resolved: pytorch#154205 Approved by: https://github.com/mikaylagawarecki
1 parent 9e089bb commit 214e4ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

torch/nn/modules/normalization.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ class RMSNorm(Module):
343343
344344
If a single integer is used, it is treated as a singleton list, and this module will
345345
normalize over the last dimension which is expected to be of that specific size.
346-
eps: a value added to the denominator for numerical stability. Default: :func:`torch.finfo(x.dtype).eps`
346+
eps: a value added to the denominator for numerical stability. Default: ``torch.finfo(x.dtype).eps``
347347
elementwise_affine: a boolean value that when set to ``True``, this module
348348
has learnable per-element affine parameters initialized to ones (for weights). Default: ``True``.
349349

0 commit comments

Comments
 (0)