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

Function test_mask_persistency

tests/tests.py:243–246  ·  view source on GitHub ↗
(random_tensor, mask_value)

Source from the content-addressed store, hash-verified

241
242@pytest.mark.parametrize("mask_value", [100, 200, 300])
243def test_mask_persistency(random_tensor, mask_value):
244 block = ParallelTransformerBlock(512, 64, 8, 4)
245 block.get_mask(mask_value, random_tensor.device)
246 assert block.mask.shape[0] == mask_value
247
248
249@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected