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

Method forward

diffusers/src/diffusers/models/unets/uvit_2d.py:466–470  ·  view source on GitHub ↗
(self, hidden_states)

Source from the content-addressed store, hash-verified

464 self.conv2 = nn.Conv2d(in_channels, codebook_size, kernel_size=1, bias=use_bias)
465
466 def forward(self, hidden_states):
467 hidden_states = self.conv1(hidden_states)
468 hidden_states = self.layer_norm(hidden_states.permute(0, 2, 3, 1)).permute(0, 3, 1, 2)
469 logits = self.conv2(hidden_states)
470 return logits

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected