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

Function test_bitlinear_initialization

tests/test_bitlinear.py:6–13  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4
5
6def test_bitlinear_initialization():
7 bitlinear = BitLinear(in_features=512, out_features=256, bias=True)
8 assert bitlinear.in_features == 512
9 assert bitlinear.out_features == 256
10 assert bitlinear.weight.shape == (256, 512)
11 assert bitlinear.bias.shape == (256,)
12 assert bitlinear.gamma.shape == (512,)
13 assert bitlinear.beta.shape == (256,)
14
15
16def test_bitlinear_forward_pass():

Callers

nothing calls this directly

Calls 1

BitLinearClass · 0.90

Tested by

no test coverage detected