(self, text_embeds: torch.Tensor, image_embeds: torch.Tensor)
| 1907 | self.image_proj = nn.Linear(image_embed_dim, time_embed_dim) |
| 1908 | |
| 1909 | def forward(self, text_embeds: torch.Tensor, image_embeds: torch.Tensor): |
| 1910 | # text |
| 1911 | time_text_embeds = self.text_proj(text_embeds) |
| 1912 | time_text_embeds = self.text_norm(time_text_embeds) |
| 1913 | |
| 1914 | # image |
| 1915 | time_image_embeds = self.image_proj(image_embeds) |
| 1916 | |
| 1917 | return time_image_embeds + time_text_embeds |
| 1918 | |
| 1919 | |
| 1920 | class ImageTimeEmbedding(nn.Module): |
nothing calls this directly
no outgoing calls
no test coverage detected