Skip to content

Commit 2da66b2

Browse files
Fix the order of parameters in bench_scalar_quantizer_distance. (#4159)
Summary: I believe the order of the parameters was not intended to be that way. This PR fixes it. Pull Request resolved: facebookresearch/faiss#4159 Reviewed By: mengdilin Differential Revision: D69073195 Pulled By: junjieqi fbshipit-source-id: bfb62aa7536deeda73bee32f2de3cd7a8142bb13
1 parent 5213d8a commit 2da66b2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

perf_tests/bench_scalar_quantizer_distance.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ DEFINE_uint32(iterations, 20, "iterations");
2323
static void bench_distance(
2424
benchmark::State& state,
2525
ScalarQuantizer::QuantizerType type,
26-
int n,
27-
int d) {
26+
int d,
27+
int n) {
2828
std::vector<float> x(d * n);
2929

3030
float_rand(x.data(), d * n, 12345);

0 commit comments

Comments
 (0)