From 6f74ca826048f6f9fef79db0601011697f69390a 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: dedaac89b832cd6a8cf3c0ac754f221c762e2893 --- .../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 268b7fb9e3..16e47735d1 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