Skip to content

Commit

Permalink
fix a typo (#2881)
Browse files Browse the repository at this point in the history
Summary: Pull Request resolved: #2881

Reviewed By: algoriddle

Differential Revision: D46227909

fbshipit-source-id: 9af689947f003b1f9c1dcdedcb1783b78b4bd21a
  • Loading branch information
Alexandr Guzhva authored and facebook-github-bot committed May 26, 2023
1 parent e8b7575 commit 6fd0cb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion faiss/impl/ScalarQuantizer.cpp
Expand Up @@ -486,7 +486,7 @@ void train_Uniform(
} else if (rs == ScalarQuantizer::RS_quantiles) {
std::vector<float> x_copy(n);
memcpy(x_copy.data(), x, n * sizeof(*x));
// TODO just do a qucikselect
// TODO just do a quickselect
std::sort(x_copy.begin(), x_copy.end());
int o = int(rs_arg * n);
if (o < 0)
Expand Down

0 comments on commit 6fd0cb6

Please sign in to comment.