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

Method __init__

diffsynth/models/wan_video_dit.py:291–293  ·  view source on GitHub ↗
(self, num_heads)

Source from the content-addressed store, hash-verified

289
290class AttentionModule(nn.Module):
291 def __init__(self, num_heads):
292 super().__init__()
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)

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected