Allow setting nprobe for IndexIDMap->IndexIVF (#673)

There we go
This commit is contained in:
Bonnie Varghese
2019-01-09 13:00:36 +01:00
committed by Matthijs Douze
parent f417a53628
commit eb6c4cc96a
+4 -1
View File
@@ -488,7 +488,10 @@ void ParameterSpace::set_index_parameter (
}
if (name == "nprobe") {
if ( DC(IndexIVF)) {
if (DC (IndexIDMap)) {
set_index_parameter (ix->index, name, val);
return;
} else if (DC (IndexIVF)) {
ix->nprobe = int(val);
return;
}