Skip to content

Commit e18de23

Browse files
Fix chunk-based processing in ResidualCoarseQuantizer::search() (facebookresearch#3047)
Summary: Adds a missing function argument to ResidualCoarseQuantizer() whenever the data is processed in chunks Pull Request resolved: facebookresearch#3047 Reviewed By: mlomeli1 Differential Revision: D49687858 Pulled By: mdouze fbshipit-source-id: 1456138fe1ff3a033b73e97f16470ac8ceca60ab
1 parent a1814be commit e18de23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

faiss/IndexAdditiveQuantizer.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,7 @@ void ResidualCoarseQuantizer::search(
560560
}
561561
for (idx_t i0 = 0; i0 < n; i0 += bs) {
562562
idx_t i1 = std::min(n, i0 + bs);
563-
search(i1 - i0, x + i0 * d, k, distances + i0 * k, labels + i0 * k);
563+
search(i1 - i0, x + i0 * d, k, distances + i0 * k, labels + i0 * k, params_in);
564564
InterruptCallback::check();
565565
}
566566
return;

0 commit comments

Comments
 (0)