(self, input)
| 178 | self.bias = Parameter(bias.to(device), requires_grad=False) if bias is not None else None |
| 179 | |
| 180 | def forward(self, input): |
| 181 | output = W8A16Linear.apply(input, self.weight, self.weight_scale, self.weight_bit_width) |
| 182 | if self.bias is not None: |
| 183 | output = output + self.bias |
| 184 | return output |
| 185 | |
| 186 | |
| 187 | def quantize(model, weight_bit_width, empty_init=False, device=None): |
nothing calls this directly
no outgoing calls
no test coverage detected