mirror of https://github.com/milvus-io/milvus.git
Merge branch '0.5.0' into '0.5.0'
update See merge request megasearch/milvus!774 Former-commit-id: e0cc5fcb9b94db5369d30d28c20bfcc5f208f94dpull/191/head
commit
160e08b400
|
@ -124,6 +124,11 @@ ExecutionEngineImpl::HybridLoad() const {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (index_->GetType() == IndexType::FAISS_IDMAP) {
|
||||||
|
ENGINE_LOG_WARNING << "HybridLoad with type FAISS_IDMAP, ignore";
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const std::string key = location_ + ".quantizer";
|
const std::string key = location_ + ".quantizer";
|
||||||
std::vector<uint64_t> gpus = scheduler::get_gpu_pool();
|
std::vector<uint64_t> gpus = scheduler::get_gpu_pool();
|
||||||
|
|
||||||
|
@ -178,6 +183,9 @@ ExecutionEngineImpl::HybridUnset() const {
|
||||||
if (index_type_ != EngineType::FAISS_IVFSQ8H) {
|
if (index_type_ != EngineType::FAISS_IVFSQ8H) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (index_->GetType() == IndexType::FAISS_IDMAP) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
index_->UnsetQuantizer();
|
index_->UnsetQuantizer();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue