From bbbd8e58e12b799b3781b600c2ad02a8b0561d0d Mon Sep 17 00:00:00 2001 From: "xiaojun.lin" Date: Mon, 14 Oct 2019 15:58:38 +0800 Subject: [PATCH] MS-648 fix ivf test Former-commit-id: 1b156c82d7570765346015da400dd123a612d316 --- .../knowhere/index/vector_index/IndexIVFSQHybrid.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/core/src/index/knowhere/knowhere/index/vector_index/IndexIVFSQHybrid.cpp b/core/src/index/knowhere/knowhere/index/vector_index/IndexIVFSQHybrid.cpp index 268b7fb9..16e47735 100644 --- a/core/src/index/knowhere/knowhere/index/vector_index/IndexIVFSQHybrid.cpp +++ b/core/src/index/knowhere/knowhere/index/vector_index/IndexIVFSQHybrid.cpp @@ -79,12 +79,8 @@ IVFSQHybrid::CopyGpuToCpu(const Config& config) { VectorIndexPtr IVFSQHybrid::CopyCpuToGpu(const int64_t& device_id, const Config& config) { - if (auto res = FaissGpuResourceMgr::GetInstance().GetRes(device_id)) { - auto p = CopyCpuToGpuWithQuantizer(device_id, config); - return p.first; - } else { - KNOWHERE_THROW_MSG("CopyCpuToGpu Error, can't get gpu_resource"); - } + auto p = CopyCpuToGpuWithQuantizer(device_id, config); + return p.first; } void -- GitLab