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

Method forward

diffsynth/models/wan_video_image_encoder.py:70–77  ·  view source on GitHub ↗
(self, x, mask)

Source from the content-addressed store, hash-verified

68 self.norm2 = nn.LayerNorm(dim, eps=eps)
69
70 def forward(self, x, mask):
71 if self.post_norm:
72 x = self.norm1(x + self.attn(x, mask))
73 x = self.norm2(x + self.ffn(x))
74 else:
75 x = x + self.attn(self.norm1(x), mask)
76 x = x + self.ffn(self.norm2(x))
77 return x
78
79
80class XLMRoberta(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected