MS-151 Fix topk problem

Former-commit-id: 3f9acd4460ebede7883669147194e32f99d72094
This commit is contained in:
yu yunfeng 2019-07-04 12:41:24 +08:00 committed by jinhai
parent e2d3935b60
commit 84e0c5808a
2 changed files with 0 additions and 9 deletions

View File

@ -139,7 +139,6 @@ Status FaissExecutionEngine::Search(long n,
auto start_time = METRICS_NOW_TIME;
std::shared_ptr<faiss::IndexIVF> ivf_index = std::dynamic_pointer_cast<faiss::IndexIVF>(pIndex_);
//ENGINE_LOG_DEBUG << "Index nlist: " << ivf_index->nlist << ", ntotal: "<< ivf_index->ntotal;
if(ivf_index) {
ENGINE_LOG_DEBUG << "Index type: IVFFLAT nProbe: " << nprobe_;
ivf_index->nprobe = nprobe_;

View File

@ -168,14 +168,6 @@ std::shared_ptr<IScheduleTask> SearchTask::Execute() {
ClusterResult(output_ids, output_distence, context->nq(), spec_k, result_set);
rc.Record("cluster result");
SERVER_LOG_DEBUG << "Query Result: ";
for(auto& id2score_vector: result_set) {
for(auto& pair: id2score_vector) {
SERVER_LOG_DEBUG << "id: " << pair.first << ", distance: " << pair.second;
}
}
//step 4: pick up topk result
TopkResult(result_set, inner_k, context->GetResult());
rc.Record("reduce topk");