(self, input)
| 164 | self.lr_mul = lr_mul |
| 165 | |
| 166 | def forward(self, input): |
| 167 | if self.activation: |
| 168 | out = F.linear(input, self.weight * self.scale) |
| 169 | out = fused_leaky_relu(out, self.bias * self.lr_mul) |
| 170 | |
| 171 | else: |
| 172 | out = F.linear( |
| 173 | input, self.weight * self.scale, bias=self.bias * self.lr_mul |
| 174 | ) |
| 175 | |
| 176 | return out |
| 177 | |
| 178 | def __repr__(self): |
| 179 | return ( |
nothing calls this directly
no test coverage detected