(self, text_embeds: torch.FloatTensor, image_embeds: torch.FloatTensor)
| 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 | |
| 458 | class AttentionPooling(nn.Module): |
nothing calls this directly
no outgoing calls
no test coverage detected