Commit a91a24e7 authored by Tom Forbes's avatar Tom Forbes Committed by Matthijs Douze

Fix #558 - Make `M` an integer (#589)

* Fix #558 - Make `d` an integer

* Use int()
parent e5727060
......@@ -59,7 +59,7 @@ kprobe = int(np.sqrt(ncentroids))
nbits = d
# Parameters for indexes involving PQ
M = d / 8 # for PQ: #subquantizers
M = int(d / 8) # for PQ: #subquantizers
nbits_per_index = 8 # for PQ
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment