()
| 13 | |
| 14 | |
| 15 | def test_absmax_quantize(): |
| 16 | tensor = torch.tensor([1.5, -2.0, 3.0, -4.0]) |
| 17 | quant, dequant = absmax_quantize(tensor) |
| 18 | assert quant.dtype == torch.int8 |
| 19 | assert torch.allclose(dequant, tensor, atol=1e-2) |
| 20 | |
| 21 | |
| 22 | def test_bitlinear_initialization(): |
nothing calls this directly
no outgoing calls
no test coverage detected