(self, x)
| 264 | self.w3 = nn.Linear(dim, hidden_dim, bias=False) |
| 265 | |
| 266 | def forward(self, x): |
| 267 | return self.w2(F.silu(self.w1(x)) * self.w3(x)) |
| 268 | |
| 269 | def init_weights(self, init_std: float): |
| 270 | nn.init.trunc_normal_(self.w1.weight, mean=0.0, std=0.02) |
nothing calls this directly
no outgoing calls
no test coverage detected