Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/kyegomez/BitNet
/ test_bitlinear_forward
Function
test_bitlinear_forward
tests/tests.py:29–33 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
27
28
29
def
test_bitlinear_forward():
30
layer = BitLinear(10, 20)
31
input_tensor = torch.randn(5, 10)
32
output = layer(input_tensor)
33
assert output.shape == (5, 20)
34
35
36
# Fixtures:
Callers
nothing calls this directly
Calls
1
BitLinear
Class · 0.90
Tested by
no test coverage detected