fix wrong arguments check of hnsw-pq (#3247)

Signed-off-by: cmli <chengming.li@zilliz.com>
pull/3245/head
op-hunter 2020-08-14 11:53:56 +08:00 committed by GitHub
parent 3913cc0fc4
commit cd38d607f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -287,7 +287,7 @@ RHNSWPQConfAdapter::CheckTrain(Config& oricfg, const IndexMode mode) {
int64_t dimension = oricfg[knowhere::meta::DIM].get<int64_t>(); int64_t dimension = oricfg[knowhere::meta::DIM].get<int64_t>();
IVFPQConfAdapter::GetValidMList(dimension, resset); IVFPQConfAdapter::GetValidMList(dimension, resset);
CheckIntByValues(knowhere::IndexParams::m, resset); CheckIntByValues(knowhere::IndexParams::PQM, resset);
return ConfAdapter::CheckTrain(oricfg, mode); return ConfAdapter::CheckTrain(oricfg, mode);
} }