未验证 提交 d2767f92 编写于 作者: D dragondriver 提交者: GitHub

Fix index parameters check of RHNSWPQ (#6950)

Signed-off-by: Ndragondriver <jiquan.long@zilliz.com>
上级 47df4a2e
......@@ -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);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册