From cc3b75b6b7d71bf15d9fa64bc890c23822426af5 Mon Sep 17 00:00:00 2001 From: Cai Yudong Date: Tue, 7 Apr 2020 18:58:18 +0800 Subject: [PATCH] code revert (#1877) Signed-off-by: yudong.cai --- .../knowhere/knowhere/index/vector_index/VecIndexFactory.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/core/src/index/knowhere/knowhere/index/vector_index/VecIndexFactory.cpp b/core/src/index/knowhere/knowhere/index/vector_index/VecIndexFactory.cpp index ff8e184b43..8e3119ecac 100644 --- a/core/src/index/knowhere/knowhere/index/vector_index/VecIndexFactory.cpp +++ b/core/src/index/knowhere/knowhere/index/vector_index/VecIndexFactory.cpp @@ -65,9 +65,6 @@ VecIndexFactory::CreateVecIndex(const IndexType& type, const IndexMode mode) { return std::make_shared(); #ifdef MILVUS_GPU_VERSION } else if (type == IndexEnum::INDEX_FAISS_IVFSQ8H) { - if (mode == IndexMode::MODE_CPU) { - return nullptr; - } return std::make_shared(gpu_device); #endif } else if (type == IndexEnum::INDEX_FAISS_BIN_IDMAP) {