mirror of https://github.com/milvus-io/milvus.git
Merge branch 'update_gpuresource' into 'branch-0.4.0'
MS484 remove idmap search config See merge request megasearch/milvus!486 Former-commit-id: f2af09bc81dcd999fbbb25d183a127f3893fdd98pull/191/head
commit
a2d5adfa72
|
@ -39,9 +39,9 @@ DatasetPtr IDMAP::Search(const DatasetPtr &dataset, const Config &config) {
|
|||
}
|
||||
|
||||
auto k = config["k"].as<size_t>();
|
||||
auto metric_type = config["metric_type"].as_string() == "L2" ?
|
||||
faiss::METRIC_L2 : faiss::METRIC_INNER_PRODUCT;
|
||||
index_->metric_type = metric_type;
|
||||
//auto metric_type = config["metric_type"].as_string() == "L2" ?
|
||||
// faiss::METRIC_L2 : faiss::METRIC_INNER_PRODUCT;
|
||||
//index_->metric_type = metric_type;
|
||||
|
||||
GETTENSOR(dataset)
|
||||
|
||||
|
|
Loading…
Reference in New Issue