(self, dim: int, eps: float = 1e-5)
| 7 | """Root Mean Square Layer Normalization.""" |
| 8 | |
| 9 | def __init__(self, dim: int, eps: float = 1e-5): |
| 10 | super().__init__() |
| 11 | self.weight = nn.Parameter(torch.ones(dim)) |
| 12 | self.eps = eps |
| 13 | |
| 14 | def reset_parameters(self) -> None: |
| 15 | nn.init.constant_(self.weight, 1) |
nothing calls this directly
no outgoing calls
no test coverage detected