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

Method forward

diffsynth/models/wan_video_dit.py:295–297  ·  view source on GitHub ↗
(self, q, k, v, attention_mask=None)

Source from the content-addressed store, hash-verified

293 self.num_heads = num_heads
294
295 def forward(self, q, k, v, attention_mask=None):
296 x = flash_attention(q=q, k=k, v=v, num_heads=self.num_heads, attention_mask=attention_mask)
297 return x
298
299
300class SelfAttention(nn.Module):

Callers

nothing calls this directly

Calls 1

flash_attentionFunction · 0.85

Tested by

no test coverage detected