MCPcopy Create free account
hub / github.com/cubiq/ComfyUI_IPAdapter_plus / forward

Method forward

image_proj_models.py:271–275  ·  view source on GitHub ↗
(self, image_embeds)

Source from the content-addressed store, hash-verified

269 self.norm = nn.LayerNorm(cross_attention_dim)
270
271 def forward(self, image_embeds):
272 embeds = image_embeds
273 x = self.proj(embeds).reshape(-1, self.clip_extra_context_tokens, self.cross_attention_dim)
274 x = self.norm(x)
275 return x

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected