mirror of https://github.com/milvus-io/milvus.git
parent
d72d6fef48
commit
b8605caa40
|
@ -164,6 +164,9 @@ ExecutionEngineImpl::HybridLoad() const {
|
||||||
quantizer_conf->mode = 1;
|
quantizer_conf->mode = 1;
|
||||||
quantizer_conf->gpu_id = best_device_id;
|
quantizer_conf->gpu_id = best_device_id;
|
||||||
auto quantizer = index_->LoadQuantizer(quantizer_conf);
|
auto quantizer = index_->LoadQuantizer(quantizer_conf);
|
||||||
|
if (quantizer == nullptr) {
|
||||||
|
ENGINE_LOG_ERROR << "quantizer is nullptr";
|
||||||
|
}
|
||||||
index_->SetQuantizer(quantizer);
|
index_->SetQuantizer(quantizer);
|
||||||
auto cache_quantizer = std::make_shared<CachedQuantizer>(quantizer);
|
auto cache_quantizer = std::make_shared<CachedQuantizer>(quantizer);
|
||||||
cache::GpuCacheMgr::GetInstance(best_device_id)->InsertItem(key, cache_quantizer);
|
cache::GpuCacheMgr::GetInstance(best_device_id)->InsertItem(key, cache_quantizer);
|
||||||
|
|
|
@ -26,6 +26,7 @@
|
||||||
#include "knowhere/common/Config.h"
|
#include "knowhere/common/Config.h"
|
||||||
#include "knowhere/index/vector_index/Quantizer.h"
|
#include "knowhere/index/vector_index/Quantizer.h"
|
||||||
#include "utils/Status.h"
|
#include "utils/Status.h"
|
||||||
|
#include "utils/Log.h"
|
||||||
|
|
||||||
namespace milvus {
|
namespace milvus {
|
||||||
namespace engine {
|
namespace engine {
|
||||||
|
@ -101,6 +102,7 @@ class VecIndex : public cache::DataObj {
|
||||||
////////////////
|
////////////////
|
||||||
virtual knowhere::QuantizerPtr
|
virtual knowhere::QuantizerPtr
|
||||||
LoadQuantizer(const Config& conf) {
|
LoadQuantizer(const Config& conf) {
|
||||||
|
ENGINE_LOG_ERROR << "LoadQuantizer virtual funciton called.";
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue