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

Method forward

pixel_generator/dit/models.py:171–175  ·  view source on GitHub ↗
(self, x, c)

Source from the content-addressed store, hash-verified

169 )
170
171 def forward(self, x, c):
172 shift, scale = self.adaLN_modulation(c).chunk(2, dim=1)
173 x = modulate(self.norm_final(x), shift, scale)
174 x = self.linear(x)
175 return x
176
177
178class DiT(nn.Module):

Callers

nothing calls this directly

Calls 1

modulateFunction · 0.85

Tested by

no test coverage detected