Pass the input (and mask) through each layer in turn.
(self, x, relation, mask)
| 272 | # TODO initialize using xavier |
| 273 | |
| 274 | def forward(self, x, relation, mask): |
| 275 | "Pass the input (and mask) through each layer in turn." |
| 276 | for layer in self.layers: |
| 277 | x = layer(x, relation, mask) |
| 278 | return self.norm(x) |
| 279 | |
| 280 | |
| 281 | # Adapted from The Annotated Transformer |
nothing calls this directly
no outgoing calls
no test coverage detected