(seq_k: int, head_dim: int = 128)
| 19 | |
| 20 | |
| 21 | def _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]) |
no outgoing calls
no test coverage detected