(random_tensor)
| 117 | |
| 118 | |
| 119 | def test_bitlinear_input_quantization(random_tensor): |
| 120 | layer = BitLinear(10, 20) |
| 121 | quant_input, _ = absmax_quantize(random_tensor) |
| 122 | output = layer(quant_input.float()) |
| 123 | assert output.shape == (5, 20) |
| 124 | |
| 125 | |
| 126 | # ... Continue adding more tests ... |