Skip to content

Commit 9be1019

Browse files
qmc20234abhinavdangeti
authored andcommitted
fix argument error (facebookresearch#2965)
Summary: the argument in IndexIVFPQ constructor should be pq.M, not code_size Pull Request resolved: facebookresearch#2965 Reviewed By: algoriddle Differential Revision: D48024513 Pulled By: mdouze fbshipit-source-id: d5cb92a32bbcb647ee12a4bc6b026059c20740db
1 parent 622ebbf commit 9be1019

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

faiss/gpu/GpuCloner.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ Index* ToGpuClonerMultiple::clone_Index_to_shards(const Index* index) {
333333
const_cast<Index*>(quantizer),
334334
index_ivfpq->d,
335335
index_ivfpq->nlist,
336-
index_ivfpq->code_size,
336+
index_ivfpq->pq.M,
337337
index_ivfpq->pq.nbits);
338338
idx2.metric_type = index_ivfpq->metric_type;
339339
idx2.pq = index_ivfpq->pq;

0 commit comments

Comments
 (0)