Skip to content

Commit

Permalink
fix argument error (#2965)
Browse files Browse the repository at this point in the history
Summary:
the argument in IndexIVFPQ constructor should be pq.M, not code_size

Pull Request resolved: #2965

Reviewed By: algoriddle

Differential Revision: D48024513

Pulled By: mdouze

fbshipit-source-id: d5cb92a32bbcb647ee12a4bc6b026059c20740db
  • Loading branch information
qmc20234 authored and facebook-github-bot committed Aug 16, 2023
1 parent 2768fb3 commit 88b7255
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion faiss/gpu/GpuCloner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ Index* ToGpuClonerMultiple::clone_Index_to_shards(const Index* index) {
const_cast<Index*>(quantizer),
index_ivfpq->d,
index_ivfpq->nlist,
index_ivfpq->code_size,
index_ivfpq->pq.M,
index_ivfpq->pq.nbits);
idx2.metric_type = index_ivfpq->metric_type;
idx2.pq = index_ivfpq->pq;
Expand Down

0 comments on commit 88b7255

Please sign in to comment.