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

Method forward

models/diffloss.py:144–148  ·  view source on GitHub ↗
(self, x, c)

Source from the content-addressed store, hash-verified

142 )
143
144 def forward(self, x, c):
145 shift, scale = self.adaLN_modulation(c).chunk(2, dim=-1)
146 x = modulate(self.norm_final(x), shift, scale)
147 x = self.linear(x)
148 return x
149
150
151class SimpleMLPAdaLN(nn.Module):

Callers

nothing calls this directly

Calls 1

modulateFunction · 0.85

Tested by

no test coverage detected