(self, input)
| 71 | return (input * s).round().clamp(-128, 127).to(torch.int8), s |
| 72 | |
| 73 | def forward(self, input): |
| 74 | input, s = self.quant_input(input) |
| 75 | return bitnet_int8xint2_linear(input, self.weight, s, self.weight_scale) |
| 76 | |
| 77 | class BitLinear(nn.Linear): |
| 78 | @torch.compile |
nothing calls this directly
no test coverage detected