MCPcopy Create free account
hub / github.com/LTH14/mar / forward

Method forward

models/diffloss.py:124–128  ·  view source on GitHub ↗
(self, x, y)

Source from the content-addressed store, hash-verified

122 )
123
124 def forward(self, x, y):
125 shift_mlp, scale_mlp, gate_mlp = self.adaLN_modulation(y).chunk(3, dim=-1)
126 h = modulate(self.in_ln(x), shift_mlp, scale_mlp)
127 h = self.mlp(h)
128 return x + gate_mlp * h
129
130
131class FinalLayer(nn.Module):

Callers

nothing calls this directly

Calls 1

modulateFunction · 0.85

Tested by

no test coverage detected