MCPcopy Create free account
hub / github.com/cswry/VOSR / forward

Method forward

models/lightningdit.py:324–328  ·  view source on GitHub ↗
(self, x, c)

Source from the content-addressed store, hash-verified

322 )
323 @torch.compile
324 def forward(self, x, c):
325 shift, scale = self.adaLN_modulation(c).chunk(2, dim=1)
326 x = modulate(self.norm_final(x), shift, scale)
327 x = self.linear(x)
328 return x
329
330
331class LightningDiT(nn.Module):

Callers

nothing calls this directly

Calls 1

modulateFunction · 0.85

Tested by

no test coverage detected