Fix the order of parameters in bench_scalar_quantizer_distance. ()

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: bfb62aa7536deeda73bee32f2de3cd7a8142bb13
pull/4169/head
Mulugeta Mammo 2025-02-04 09:45:44 -08:00 committed by Facebook GitHub Bot
parent 3ec2fbdf0d
commit 6c046992a7
1 changed files with 2 additions and 2 deletions

View File

@ -23,8 +23,8 @@ DEFINE_uint32(iterations, 20, "iterations");
static void bench_distance(
benchmark::State& state,
ScalarQuantizer::QuantizerType type,
int n,
int d) {
int d,
int n) {
std::vector<float> x(d * n);
float_rand(x.data(), d * n, 12345);