From cd38d607f09889cdd1a4f147199596ad5183b5d7 Mon Sep 17 00:00:00 2001 From: op-hunter Date: Fri, 14 Aug 2020 11:53:56 +0800 Subject: [PATCH] fix wrong arguments check of hnsw-pq (#3247) Signed-off-by: cmli --- .../index/knowhere/knowhere/index/vector_index/ConfAdapter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/index/knowhere/knowhere/index/vector_index/ConfAdapter.cpp b/core/src/index/knowhere/knowhere/index/vector_index/ConfAdapter.cpp index 131b3473e4..578da70b10 100644 --- a/core/src/index/knowhere/knowhere/index/vector_index/ConfAdapter.cpp +++ b/core/src/index/knowhere/knowhere/index/vector_index/ConfAdapter.cpp @@ -287,7 +287,7 @@ RHNSWPQConfAdapter::CheckTrain(Config& oricfg, const IndexMode mode) { int64_t dimension = oricfg[knowhere::meta::DIM].get(); IVFPQConfAdapter::GetValidMList(dimension, resset); - CheckIntByValues(knowhere::IndexParams::m, resset); + CheckIntByValues(knowhere::IndexParams::PQM, resset); return ConfAdapter::CheckTrain(oricfg, mode); }