(self, ca_block_cfg=None, ffn_cfg=None)
| 211 | class DecoderLayer(nn.Module): |
| 212 | |
| 213 | def __init__(self, ca_block_cfg=None, ffn_cfg=None): |
| 214 | super().__init__() |
| 215 | self.ca_block = build_attention(ca_block_cfg) |
| 216 | self.ffn = SFFN(**ffn_cfg) |
| 217 | |
| 218 | def forward(self, **kwargs): |
| 219 | if self.ca_block is not None: |
nothing calls this directly
no test coverage detected