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

Method forward

k_diffusion/models/modules.py:572–578  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

570 self.down_proj = apply_wd(zero_init(Linear(d_ff, d_model, bias=False)))
571
572 def forward(self, x):
573 skip = x
574 x = self.norm(x)
575 x = self.up_proj(x)
576 x = self.dropout(x)
577 x = self.down_proj(x)
578 return x + skip
579
580class MappingNetwork(nn.Module):
581 def __init__(self, n_layers, d_model, d_ff, dropout=0.0):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected