MCPcopy Create free account
hub / github.com/UVA-Computer-Vision-Lab/FrameINO / forward

Method forward

architecture/embeddings.py:1909–1917  ·  view source on GitHub ↗
(self, text_embeds: torch.Tensor, image_embeds: torch.Tensor)

Source from the content-addressed store, hash-verified

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
1920class ImageTimeEmbedding(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected