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

Method forward

diffsynth/models/flux_dit.py:198–202  ·  view source on GitHub ↗
(self, x, emb)

Source from the content-addressed store, hash-verified

196
197
198 def forward(self, x, emb):
199 emb = self.linear(self.silu(emb))
200 shift_msa, scale_msa, gate_msa = emb.chunk(3, dim=1)
201 x = self.norm(x) * (1 + scale_msa[:, None]) + shift_msa[:, None]
202 return x, gate_msa
203
204
205

Callers

nothing calls this directly

Calls 1

normMethod · 0.80

Tested by

no test coverage detected