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

Method forward

diffsynth/models/wan_video_text_encoder.py:30–35  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

28 self.weight = nn.Parameter(torch.ones(dim))
29
30 def forward(self, x):
31 x = x * torch.rsqrt(x.float().pow(2).mean(dim=-1, keepdim=True) +
32 self.eps)
33 if self.weight.dtype in [torch.float16, torch.bfloat16]:
34 x = x.type_as(self.weight)
35 return self.weight * x
36
37
38class T5Attention(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected