Skip to content

Commit

Permalink
Merge commit 0f182519a689f51f10a940ee0c4389eee6e55b94 from Faiss mast…
Browse files Browse the repository at this point in the history
…er branch

Signed-off-by: Alexandr Guzhva <alexanderguzhva@gmail.com>
  • Loading branch information
alexanderguzhva committed Oct 17, 2023
1 parent 60ad91b commit 9f967a3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion thirdparty/faiss/faiss/IndexAdditiveQuantizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,12 @@ void ResidualCoarseQuantizer::search(
}
for (idx_t i0 = 0; i0 < n; i0 += bs) {
idx_t i1 = std::min(n, i0 + bs);
search(i1 - i0, x + i0 * d, k, distances + i0 * k, labels + i0 * k, params_in);
search(i1 - i0,
x + i0 * d,
k,
distances + i0 * k,
labels + i0 * k,
params_in);
InterruptCallback::check();
}
return;
Expand Down

0 comments on commit 9f967a3

Please sign in to comment.