(self, hidden_states)
| 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 | |
| 148 | class ApproximateGELU(nn.Module): |
nothing calls this directly
no outgoing calls
no test coverage detected