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: https://github.com/facebookresearch/faiss/pull/4159 Reviewed By: mengdilin Differential Revision: D69073195 Pulled By: junjieqi fbshipit-source-id: bfb62aa7536deeda73bee32f2de3cd7a8142bb13pull/4169/head
parent
3ec2fbdf0d
commit
6c046992a7
|
@ -23,8 +23,8 @@ DEFINE_uint32(iterations, 20, "iterations");
|
||||||
static void bench_distance(
|
static void bench_distance(
|
||||||
benchmark::State& state,
|
benchmark::State& state,
|
||||||
ScalarQuantizer::QuantizerType type,
|
ScalarQuantizer::QuantizerType type,
|
||||||
int n,
|
int d,
|
||||||
int d) {
|
int n) {
|
||||||
std::vector<float> x(d * n);
|
std::vector<float> x(d * n);
|
||||||
|
|
||||||
float_rand(x.data(), d * n, 12345);
|
float_rand(x.data(), d * n, 12345);
|
||||||
|
|
Loading…
Reference in New Issue