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

Method forward

diffsynth/models/flux_ipadapter.py:21–25  ·  view source on GitHub ↗
(self, id_embeds)

Source from the content-addressed store, hash-verified

19 self.norm = torch.nn.LayerNorm(cross_attention_dim)
20
21 def forward(self, id_embeds):
22 x = self.proj(id_embeds)
23 x = x.reshape(-1, self.num_tokens, self.cross_attention_dim)
24 x = self.norm(x)
25 return x
26
27class IpAdapterModule(torch.nn.Module):
28 def __init__(self, num_attention_heads, attention_head_dim, input_dim):

Callers

nothing calls this directly

Calls 1

normMethod · 0.80

Tested by

no test coverage detected