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
pull/3627/head
Michael Norris 2024-07-09 14:56:31 -07:00 committed by Facebook GitHub Bot
parent 036a7e3cf1
commit 444614b076
1 changed files with 1 additions and 1 deletions

View File

@ -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");