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

Function test_bitlinear_reset_parameters

tests/tests.py:71–75  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

69
70
71def test_bitlinear_reset_parameters():
72 layer = BitLinear(10, 20)
73 original_weights = layer.weight.clone()
74 layer.reset_parameters()
75 assert not torch.equal(original_weights, layer.weight)
76
77
78@pytest.mark.parametrize("groups", [1, 2, 5])

Callers

nothing calls this directly

Calls 1

BitLinearClass · 0.90

Tested by

no test coverage detected