mirror of
https://github.com/facebookresearch/faiss.git
synced 2025-06-03 21:54:02 +08:00
* Fix #558 - Make `d` an integer * Use int()
This commit is contained in:
parent
e57270600a
commit
a91a24e77a
@ -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
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user