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

Function test_transformer

tests/tests.py:178–181  ·  view source on GitHub ↗
(dim, depth, heads, dim_head, ff_mult, random_tensor)

Source from the content-addressed store, hash-verified

176 ],
177)
178def test_transformer(dim, depth, heads, dim_head, ff_mult, random_tensor):
179 transformer = Transformer(dim, depth, heads, dim_head, ff_mult)
180 output = transformer(random_tensor)
181 assert output.shape == random_tensor.shape
182
183
184def test_bitnet_transformer_forward(bitnet_model):

Callers

nothing calls this directly

Calls 1

TransformerClass · 0.90

Tested by

no test coverage detected