From 444614b076be7876d2e401cbd54b2624f6800af8 Mon Sep 17 00:00:00 2001 From: Michael Norris Date: Tue, 9 Jul 2024 14:56:31 -0700 Subject: [PATCH] Set verbosoe before train (#3619) Summary: Pull Request resolved: https://github.com/facebookresearch/faiss/pull/3619 Resolves issue https://github.com/facebookresearch/faiss/issues/3293 This just means that we wouldn't get verbose prints in train() before, and after we do. Reviewed By: junjieqi Differential Revision: D59474995 fbshipit-source-id: 72537643b661c553353e5f701cfcaf76d21f40d2 --- faiss/IndexIVF.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/faiss/IndexIVF.cpp b/faiss/IndexIVF.cpp index 548aaa4cc..14830475d 100644 --- a/faiss/IndexIVF.cpp +++ b/faiss/IndexIVF.cpp @@ -66,8 +66,8 @@ void Level1Quantizer::train_q1( } else if (quantizer_trains_alone == 1) { if (verbose) printf("IVF quantizer trains alone...\n"); - quantizer->train(n, x); quantizer->verbose = verbose; + quantizer->train(n, x); FAISS_THROW_IF_NOT_MSG( quantizer->ntotal == nlist, "nlist not consistent with quantizer size");