diff --git a/cpp/src/core/knowhere/knowhere/index/vector_index/IndexIVFSQHybrid.cpp b/cpp/src/core/knowhere/knowhere/index/vector_index/IndexIVFSQHybrid.cpp index 5449aec8605181e15fe351fc26ddc0031aa4f8ba..5f916f3370a9afe9f81318252cc94253fbb93eb5 100644 --- a/cpp/src/core/knowhere/knowhere/index/vector_index/IndexIVFSQHybrid.cpp +++ b/cpp/src/core/knowhere/knowhere/index/vector_index/IndexIVFSQHybrid.cpp @@ -231,17 +231,14 @@ IVFSQHybrid::LoadQuantizer(const Config& conf) { void IVFSQHybrid::SetQuantizer(const QuantizerPtr& q) { - } void IVFSQHybrid::UnsetQuantizer() { - } void IVFSQHybrid::LoadData(const knowhere::QuantizerPtr& q, const Config& conf) { - } IndexModelPtr @@ -260,11 +257,7 @@ IVFSQHybrid::CopyCpuToGpu(const int64_t& device_id, const Config& config) { } void -IVFSQHybrid::search_impl(int64_t n, - const float* data, - int64_t k, - float* distances, - int64_t* labels, +IVFSQHybrid::search_impl(int64_t n, const float* data, int64_t k, float* distances, int64_t* labels, const Config& cfg) { GPUIVF::search_impl(n, data, k, distances, labels, cfg); } diff --git a/cpp/src/core/unittest/test_ivf.cpp b/cpp/src/core/unittest/test_ivf.cpp index cc4712c2633d7abd814fa144b8b67870ac8ad01f..c6faea9182c866c25d2e409e5123c45d82e6fb3c 100644 --- a/cpp/src/core/unittest/test_ivf.cpp +++ b/cpp/src/core/unittest/test_ivf.cpp @@ -160,8 +160,7 @@ INSTANTIATE_TEST_CASE_P(IVFParameters, IVFTest, #ifdef CUSTOMIZATION std::make_tuple("IVFSQHybrid", ParameterType::ivfsq), #endif - std::make_tuple("GPUIVFSQ", ParameterType::ivfsq)) - ); + std::make_tuple("GPUIVFSQ", ParameterType::ivfsq))); void AssertAnns(const knowhere::DatasetPtr& result, const int& nq, const int& k) { diff --git a/cpp/src/wrapper/VecIndex.cpp b/cpp/src/wrapper/VecIndex.cpp index bd0e8724ad94e3756bc2a38bab7537010e871c6d..6bc054bd21cbceee9963ee2404dee51015e1ffaf 100644 --- a/cpp/src/wrapper/VecIndex.cpp +++ b/cpp/src/wrapper/VecIndex.cpp @@ -15,6 +15,8 @@ // specific language governing permissions and limitations // under the License. +#include "wrapper/VecIndex.h" +#include "VecImpl.h" #include "knowhere/common/Exception.h" #include "knowhere/index/vector_index/IndexGPUIVF.h" #include "knowhere/index/vector_index/IndexGPUIVFPQ.h" @@ -26,8 +28,6 @@ #include "knowhere/index/vector_index/IndexIVFSQHybrid.h" #include "knowhere/index/vector_index/IndexKDT.h" #include "knowhere/index/vector_index/IndexNSG.h" -#include "wrapper/VecIndex.h" -#include "VecImpl.h" #include "utils/Log.h" #include @@ -161,7 +161,8 @@ GetVecIndexFactory(const IndexType& type, const Config& cfg) { VecIndexPtr LoadVecIndex(const IndexType& index_type, const knowhere::BinarySet& index_binary) { auto index = GetVecIndexFactory(index_type); - if (index == nullptr) return nullptr; + if (index == nullptr) + return nullptr; // else index->Load(index_binary); return index; diff --git a/cpp/src/wrapper/VecIndex.h b/cpp/src/wrapper/VecIndex.h index 2284c442666c8d17bc8fbb2d69d597ec1c1b5c6d..34d3d2f761c01b262ea0f24ac41c9b10265bb2ef 100644 --- a/cpp/src/wrapper/VecIndex.h +++ b/cpp/src/wrapper/VecIndex.h @@ -20,10 +20,10 @@ #include #include +#include "cache/DataObj.h" #include "knowhere/common/BinarySet.h" #include "knowhere/common/Config.h" #include "knowhere/index/vector_index/Quantizer.h" -#include "cache/DataObj.h" #include "utils/Status.h" namespace milvus {