MCPcopy Create free account
hub / github.com/kyegomez/BitNet / test_bitlinear_input_quantization

Function test_bitlinear_input_quantization

tests/tests.py:119–123  ·  view source on GitHub ↗
(random_tensor)

Source from the content-addressed store, hash-verified

117
118
119def 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 ...

Callers

nothing calls this directly

Calls 1

BitLinearClass · 0.90

Tested by

no test coverage detected