Pass the input (and mask) through each layer in turn.
(self, x)
| 95 | self.norm = LayerNorm(layer.size) |
| 96 | |
| 97 | def forward(self, x): |
| 98 | "Pass the input (and mask) through each layer in turn." |
| 99 | for layer in self.layers: |
| 100 | x = layer(x) |
| 101 | return self.norm(x) |
| 102 | |
| 103 | |
| 104 | class LayerNorm(nn.Module): |
nothing calls this directly
no outgoing calls
no test coverage detected