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

Method __init__

mogen/models/transformers/remodiffuse.py:32–35  ·  view source on GitHub ↗
(self, sa_block_cfg=None, ca_block_cfg=None, ffn_cfg=None)

Source from the content-addressed store, hash-verified

30class EncoderLayer(nn.Module):
31
32 def __init__(self, sa_block_cfg=None, ca_block_cfg=None, ffn_cfg=None):
33 super().__init__()
34 self.sa_block = build_attention(sa_block_cfg)
35 self.ffn = FFN(**ffn_cfg)
36
37 def forward(self, **kwargs):
38 if self.sa_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