(self, x)
| 27 | self.weight = nn.Parameter(torch.ones(dim)) |
| 28 | |
| 29 | def _norm(self, x): |
| 30 | return x * torch.rsqrt(x.pow(2).mean(-1, keepdim=True) + self.eps) |
| 31 | |
| 32 | def forward(self, x): |
| 33 | output = torch.empty_like(x) |
nothing calls this directly
no outgoing calls
no test coverage detected