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

Method forward

diffusers/src/diffusers/models/activations.py:142–145  ·  view source on GitHub ↗
(self, hidden_states)

Source from the content-addressed store, hash-verified

140 self.activation = nn.SiLU()
141
142 def forward(self, hidden_states):
143 hidden_states = self.proj(hidden_states)
144 hidden_states, gate = hidden_states.chunk(2, dim=-1)
145 return hidden_states * self.activation(gate)
146
147
148class ApproximateGELU(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected