Commit 191dd35e authored by peng.xu's avatar peng.xu
Browse files

Merge branch 'add_debug_info' into '0.5.1'

info lint:

See merge request megasearch/milvus!810

Former-commit-id: 0244992f162241bead8637c03a606a56cd1c0cdc
parents a3732546 e3fe1e2a
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -221,11 +221,8 @@ IVF::search_impl(int64_t n, const float* data, int64_t k, float* distances, int6
    faiss::ivflib::search_with_parameters(index_.get(), n, (float*)data, k, distances, labels, params.get());
    stdclock::time_point after = stdclock::now();
    double search_cost = (std::chrono::duration<double, std::micro>(after - before)).count();
    KNOWHERE_LOG_DEBUG << "K=" << k
                       << " NQ=" << n
                       << " NL=" << faiss::indexIVF_stats.nlist
                       << " ND=" << faiss::indexIVF_stats.ndis
                       << " NH=" << faiss::indexIVF_stats.nheap_updates
    KNOWHERE_LOG_DEBUG << "K=" << k << " NQ=" << n << " NL=" << faiss::indexIVF_stats.nlist
                       << " ND=" << faiss::indexIVF_stats.ndis << " NH=" << faiss::indexIVF_stats.nheap_updates
                       << " Q=" << faiss::indexIVF_stats.quantization_time
                       << " S=" << faiss::indexIVF_stats.search_time;
    faiss::indexIVF_stats.quantization_time = 0;