(self, x)
| 102 | self.project_out = nn.Conv2d(hidden_features, dim, kernel_size=1, bias=bias) |
| 103 | |
| 104 | def forward(self, x): |
| 105 | x = self.project_in(x) |
| 106 | x1, x2 = self.dwconv(x).chunk(2, dim=1) |
| 107 | x = F.gelu(x1) * x2 |
| 108 | x = self.project_out(x) |
| 109 | return x |
| 110 | |
| 111 | def initialize(self): |
| 112 | weight_init(self) |
nothing calls this directly
no outgoing calls
no test coverage detected