MCPcopy Create free account
hub / github.com/MotrixLab/FineMoGen / __init__

Method __init__

mogen/models/transformers/momatmogen.py:36–39  ·  view source on GitHub ↗
(self, ca_block_cfg=None, ffn_cfg=None)

Source from the content-addressed store, hash-verified

34class DecoderLayer(nn.Module):
35
36 def __init__(self, ca_block_cfg=None, ffn_cfg=None):
37 super().__init__()
38 self.ca_block = build_attention(ca_block_cfg)
39 self.ffn = FFN(**ffn_cfg)
40
41 def forward(self, **kwargs):
42 if self.ca_block is not None:

Callers

nothing calls this directly

Calls 3

build_attentionFunction · 0.85
FFNClass · 0.70
__init__Method · 0.45

Tested by

no test coverage detected