(d, bits)
| 31 | @pytest.mark.parametrize("d", [64, 128, 256]) |
| 32 | @pytest.mark.parametrize("bits", [2, 3, 4]) |
| 33 | def test_symmetry(d, bits): |
| 34 | cb = LloydMaxCodebook(d, bits) |
| 35 | assert cb.centroids.sum().abs().item() < 1e-4, ( |
| 36 | f"Centroids should be symmetric: sum={cb.centroids.sum().item()}" |
| 37 | ) |
| 38 | |
| 39 | |
| 40 | @pytest.mark.parametrize("bits", [1, 2, 3, 4]) |
nothing calls this directly
no test coverage detected