(self, x, src_mask=None)
| 60 | self.layers = nn.ModuleList([EncoderBlock(embed_dim, n_heads, dropout) for _ in range(n_blocks)]) |
| 61 | |
| 62 | def forward(self, x, src_mask=None): |
| 63 | for layer in self.layers: |
| 64 | x = layer(x, src_mask) |
| 65 | return x |
| 66 | |
| 67 | class DecoderBlock(nn.Module): |
| 68 | def __init__(self, embed_dim, n_heads, dropout): |
nothing calls this directly
no outgoing calls
no test coverage detected