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

Method forward

diffusers/src/diffusers/models/unets/uvit_2d.py:299–304  ·  view source on GitHub ↗
(self, input_ids)

Source from the content-addressed store, hash-verified

297 self.conv = nn.Conv2d(in_channels, block_out_channels, kernel_size=1, bias=bias)
298
299 def forward(self, input_ids):
300 embeddings = self.embeddings(input_ids)
301 embeddings = self.layer_norm(embeddings)
302 embeddings = embeddings.permute(0, 3, 1, 2)
303 embeddings = self.conv(embeddings)
304 return embeddings
305
306
307class UVitBlock(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected