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

Function test_bitlinear_forward_with_groups

tests/tests.py:79–82  ·  view source on GitHub ↗
(random_tensor, groups)

Source from the content-addressed store, hash-verified

77
78@pytest.mark.parametrize("groups", [1, 2, 5])
79def test_bitlinear_forward_with_groups(random_tensor, groups):
80 layer = BitLinear(10, 20, groups=groups)
81 output = layer(random_tensor)
82 assert output.shape == (5, 20)
83
84
85def test_bitlinear_zero_input():

Callers

nothing calls this directly

Calls 1

BitLinearClass · 0.90

Tested by

no test coverage detected