mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-07 19:31:51 +08:00
Delete useless boolean (#2107)
Signed-off-by: xge-zilliz <xi.ge@zilliz.com>
This commit is contained in:
parent
d3daa0d3ea
commit
42b1983625
@ -68,7 +68,7 @@ IndexHNSW::Load(const BinarySet& index_binary) {
|
||||
index_ = std::make_shared<hnswlib::HierarchicalNSW<float>>(space);
|
||||
index_->loadIndex(reader);
|
||||
|
||||
normalize = index_->metric_type_ == 1 ? true : false; // 1 == InnerProduct
|
||||
normalize = index_->metric_type_ == 1; // 1 == InnerProduct
|
||||
} catch (std::exception& e) {
|
||||
KNOWHERE_THROW_MSG(e.what());
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user