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

Method forward

diffusers/src/diffusers/pipelines/kolors/text_encoder.py:466–472  ·  view source on GitHub ↗
(self, hidden_states)

Source from the content-addressed store, hash-verified

464 )
465
466 def forward(self, hidden_states):
467 # [s, b, 4hp]
468 intermediate_parallel = self.dense_h_to_4h(hidden_states)
469 intermediate_parallel = self.activation_func(intermediate_parallel)
470 # [s, b, h]
471 output = self.dense_4h_to_h(intermediate_parallel)
472 return output
473
474
475class GLMBlock(torch.nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected