(self, x)
| 31 | self.ln.bias = self.bias |
| 32 | |
| 33 | def forward(self, x): |
| 34 | u = x.mean(1, keepdim=True) |
| 35 | s = (x - u).pow(2).mean(1, keepdim=True) |
| 36 | x = (x - u) / torch.sqrt(s + self.eps) |
| 37 | x = self.weight[:, None, None] * x + self.bias[:, None, None] |
| 38 | return x |
| 39 | |
| 40 | |
| 41 | class Conv2d(torch.nn.Conv2d): |
nothing calls this directly
no outgoing calls
no test coverage detected