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

Function test_bitlinear_shapes

tests/tests.py:60–62  ·  view source on GitHub ↗
(in_features, out_features)

Source from the content-addressed store, hash-verified

58 "in_features,out_features", [(10, 20), (20, 40), (5, 10), (15, 10)]
59)
60def test_bitlinear_shapes(in_features, out_features):
61 layer = BitLinear(in_features, out_features)
62 assert layer.weight.shape == (out_features, in_features)
63
64
65@pytest.mark.parametrize("groups", [1, 2, 5])

Callers

nothing calls this directly

Calls 1

BitLinearClass · 0.90

Tested by

no test coverage detected