MCPcopy Create free account
hub / github.com/YesianRohn/TextSSR / forward

Method forward

diffusers/src/diffusers/models/embeddings.py:983–990  ·  view source on GitHub ↗
(self, image_embeds: torch.Tensor)

Source from the content-addressed store, hash-verified

981 self.norm = nn.LayerNorm(cross_attention_dim)
982
983 def forward(self, image_embeds: torch.Tensor):
984 batch_size = image_embeds.shape[0]
985
986 # image
987 image_embeds = self.image_embeds(image_embeds)
988 image_embeds = image_embeds.reshape(batch_size, self.num_image_text_embeds, -1)
989 image_embeds = self.norm(image_embeds)
990 return image_embeds
991
992
993class IPAdapterFullImageProjection(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected