mirror of https://github.com/milvus-io/milvus.git
Fix index parameters check of RHNSWPQ (#6950)
Signed-off-by: dragondriver <jiquan.long@zilliz.com>pull/6842/head
parent
47df4a2e57
commit
d2767f920c
|
@ -311,7 +311,9 @@ RHNSWPQConfAdapter::CheckTrain(Config& oricfg, const IndexMode mode) {
|
|||
|
||||
auto dimension = oricfg[knowhere::meta::DIM].get<int64_t>();
|
||||
|
||||
IVFPQConfAdapter::CheckCPUPQParams(dimension, oricfg[knowhere::IndexParams::PQM].get<int64_t>());
|
||||
if (!IVFPQConfAdapter::CheckCPUPQParams(dimension, oricfg[knowhere::IndexParams::PQM].get<int64_t>())) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return ConfAdapter::CheckTrain(oricfg, mode);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue