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

Function test_parallel_transformer_block

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

Source from the content-addressed store, hash-verified

162 ],
163)
164def test_parallel_transformer_block(dim, dim_head, heads, ff_mult, random_tensor):
165 block = ParallelTransformerBlock(dim, dim_head, heads, ff_mult)
166 output = block(random_tensor)
167 assert output.shape == random_tensor.shape
168
169
170@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected