MCPcopy Create free account
hub / github.com/OpenImagingLab/FlashVSR / forward

Method forward

diffsynth/models/flux_dit.py:270–274  ·  view source on GitHub ↗
(self, x, conditioning)

Source from the content-addressed store, hash-verified

268 self.norm = torch.nn.LayerNorm(dim, eps=1e-6, elementwise_affine=False)
269
270 def forward(self, x, conditioning):
271 emb = self.linear(self.silu(conditioning))
272 scale, shift = torch.chunk(emb, 2, dim=1)
273 x = self.norm(x) * (1 + scale)[:, None] + shift[:, None]
274 return x
275
276
277

Callers

nothing calls this directly

Calls 1

normMethod · 0.80

Tested by

no test coverage detected