MCPcopy Create free account
hub / github.com/Meshcapade/difflocks / __init__

Method __init__

k_diffusion/models/modules.py:581–585  ·  view source on GitHub ↗
(self, n_layers, d_model, d_ff, dropout=0.0)

Source from the content-addressed store, hash-verified

579
580class MappingNetwork(nn.Module):
581 def __init__(self, n_layers, d_model, d_ff, dropout=0.0):
582 super().__init__()
583 self.in_norm = RMSNorm(d_model)
584 self.blocks = nn.ModuleList([MappingFeedForwardBlock(d_model, d_ff, dropout=dropout) for _ in range(n_layers)])
585 self.out_norm = RMSNorm(d_model)
586
587 def forward(self, x):
588 x = self.in_norm(x)

Callers

nothing calls this directly

Calls 3

RMSNormClass · 0.85
__init__Method · 0.45

Tested by

no test coverage detected