MCPcopy Create free account
hub / github.com/DevTechJr/turboquant_cutile / _make_random_keys

Function _make_random_keys

tests/test_compress.py:21–23  ·  view source on GitHub ↗
(seq_k: int, head_dim: int = 128)

Source from the content-addressed store, hash-verified

19
20
21def _make_random_keys(seq_k: int, head_dim: int = 128) -> torch.Tensor:
22 K = torch.randn(seq_k, head_dim)
23 return K.half()
24
25
26@pytest.mark.parametrize("seq_k", [64, 128, 256, 512])

Callers 6

test_signs_are_pm1Function · 0.85
test_norms_positiveFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected