mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-02 08:55:56 +08:00
code style format
This commit is contained in:
parent
d5eb5675b7
commit
82cb637ca8
@ -182,7 +182,7 @@ NSGConfAdapter::Match(const TempMetaConf& metaconf) {
|
||||
auto scale_factor = round(metaconf.dim / 128.0);
|
||||
scale_factor = scale_factor >= 4 ? 4 : scale_factor;
|
||||
conf->nprobe = int64_t(conf->nlist * 0.01);
|
||||
conf->knng = 40 + 10 * scale_factor; // the size of knng
|
||||
conf->knng = 40 + 10 * scale_factor; // the size of knng
|
||||
conf->search_length = 40 + 5 * scale_factor;
|
||||
conf->out_degree = 50 + 5 * scale_factor;
|
||||
conf->candidate_pool_size = 200 + 100 * scale_factor;
|
||||
|
||||
@ -303,4 +303,4 @@ TEST(whatever, test_config) {
|
||||
// dim); std::cout << points_num << " " << dim << std::endl;
|
||||
|
||||
// index_->BuildAll(points_num, data, ids.data(), conf);
|
||||
// }
|
||||
// }
|
||||
|
||||
@ -89,13 +89,13 @@ class ParamGenerator {
|
||||
return instance;
|
||||
}
|
||||
|
||||
knowhere::Config
|
||||
knowhere::Config
|
||||
GenSearchConf(const milvus::engine::IndexType& type, const milvus::engine::TempMetaConf& conf) {
|
||||
auto adapter = milvus::engine::AdapterMgr::GetInstance().GetAdapter(type);
|
||||
return adapter->MatchSearch(conf, type);
|
||||
}
|
||||
|
||||
knowhere::Config
|
||||
knowhere::Config
|
||||
GenBuild(const milvus::engine::IndexType& type, const milvus::engine::TempMetaConf& conf) {
|
||||
auto adapter = milvus::engine::AdapterMgr::GetInstance().GetAdapter(type);
|
||||
return adapter->Match(conf);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user