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

Method forward

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

Source from the content-addressed store, hash-verified

490 self.emb_pos = torch.nn.Parameter(torch.zeros((1, 514, 1280)))
491
492 def forward(self, x):
493 if self.has_pos_emb:
494 x = x + self.emb_pos.to(dtype=x.dtype, device=x.device)
495 return self.proj(x)
496
497
498class Head(nn.Module):

Callers

nothing calls this directly

Calls 1

toMethod · 0.45

Tested by

no test coverage detected