From a3bc7dee4cca10ceb27952e31d963c39f94c1be2 Mon Sep 17 00:00:00 2001 From: "xiaojun.lin" Date: Mon, 14 Oct 2019 19:51:37 +0800 Subject: [PATCH] UPDATE LINT Former-commit-id: 6cf032ad6c5d714e643327d57b52ffae0ea2098c --- .../knowhere/knowhere/index/vector_index/IndexIVFSQHybrid.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 9b6bebd79a..da0ed2283c 100644 --- a/core/src/index/knowhere/knowhere/index/vector_index/IndexIVFSQHybrid.cpp +++ b/core/src/index/knowhere/knowhere/index/vector_index/IndexIVFSQHybrid.cpp @@ -27,6 +27,7 @@ namespace knowhere { #ifdef CUSTOMIZATION + IndexModelPtr IVFSQHybrid::Train(const DatasetPtr& dataset, const Config& config) { auto build_cfg = std::dynamic_pointer_cast(config); @@ -91,7 +92,7 @@ IVFSQHybrid::CopyCpuToGpu(const int64_t& device_id, const Config& config) { auto gpu_index = faiss::gpu::index_cpu_to_gpu(res->faiss_res.get(), device_id, &index_composition, &option); - std::shared_ptr device_index = std::shared_ptr(gpu_index);; + std::shared_ptr device_index = std::shared_ptr(gpu_index); auto new_idx = std::make_shared(device_index, device_id, res); return new_idx; } else {