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

Method forward

diffsynth/models/wan_video_dit.py:285–287  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

283 return x * torch.rsqrt(x.pow(2).mean(dim=-1, keepdim=True) + self.eps)
284
285 def forward(self, x):
286 dtype = x.dtype
287 return self.norm(x.float()).to(dtype) * self.weight
288
289
290class AttentionModule(nn.Module):

Callers

nothing calls this directly

Calls 2

normMethod · 0.95
toMethod · 0.45

Tested by

no test coverage detected