Skip to content

Commit 6c04699

Browse files
mulugetamfacebook-github-bot
authored andcommitted
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: #4159 Reviewed By: mengdilin Differential Revision: D69073195 Pulled By: junjieqi fbshipit-source-id: bfb62aa7536deeda73bee32f2de3cd7a8142bb13
1 parent 3ec2fbd commit 6c04699

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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)