We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d6dcb7 commit 667cfa4Copy full SHA for 667cfa4
faiss/IndexIVFPQ.cpp
@@ -152,7 +152,7 @@ static std::unique_ptr<float[]> compute_residuals(
152
std::unique_ptr<float[]> residuals(new float[n * d]);
153
// Parallelize with OpenMP (each iteration is independent)
154
#pragma omp parallel for if (n > 1000)
155
- for (size_t i = 0; i < n; i++) {
+ for (idx_t i = 0; i < n; i++) {
156
if (list_nos[i] < 0)
157
memset(residuals.get() + i * d, 0, sizeof(float) * d);
158
else
0 commit comments