(self, input)
| 165 | self.lr_mul = lr_mul |
| 166 | |
| 167 | def forward(self, input): |
| 168 | |
| 169 | if self.activation: |
| 170 | out = F.linear(input, self.weight * self.scale) |
| 171 | out = fused_leaky_relu(out, self.bias * self.lr_mul) |
| 172 | else: |
| 173 | out = F.linear(input, self.weight * self.scale, bias=self.bias * self.lr_mul) |
| 174 | |
| 175 | return out |
| 176 | |
| 177 | def __repr__(self): |
| 178 | return (f'{self.__class__.__name__}({self.weight.shape[1]}, {self.weight.shape[0]})') |
nothing calls this directly
no test coverage detected