def subquantizer_flops(D, M, clusters=256):
    # (subquants per half) * (dims per subquant) * (cluster per subquant) * (flops per squared distance)
    return (M / 2) * (D / M) * clusters * 2
Given the dimension of the data, the number of subquantizers and the
dataset/ETHPy150Open yahoo/lopq/scripts/query_runtime.py/subquantizer_flops