MCPcopy Create free account
hub / github.com/AlayaLab/Hive / forward

Method forward

models/flowsep/diffusers/models/embeddings.py:447–455  ·  view source on GitHub ↗
(self, text_embeds: torch.FloatTensor, image_embeds: torch.FloatTensor)

Source from the content-addressed store, hash-verified

445 self.image_proj = nn.Linear(image_embed_dim, time_embed_dim)
446
447 def forward(self, text_embeds: torch.FloatTensor, image_embeds: torch.FloatTensor):
448 # text
449 time_text_embeds = self.text_proj(text_embeds)
450 time_text_embeds = self.text_norm(time_text_embeds)
451
452 # image
453 time_image_embeds = self.image_proj(image_embeds)
454
455 return time_image_embeds + time_text_embeds
456
457
458class AttentionPooling(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected