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: 72537643b661c553353e5f701cfcaf76d21f40d2pull/3627/head
parent
036a7e3cf1
commit
444614b076
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue