提交 9cb81455 编写于 作者: X Xu Peng

refactor(db): change print for search


Former-commit-id: c1df662f54ba5132db8d4fbbbd9b1e9998a61e7a
上级 ae5e6720
......@@ -120,7 +120,8 @@ Status DBImpl::search(const std::string& group_id, size_t k, size_t nq,
index = read_index(file.location.c_str());
zilliz::vecwise::cache::CpuCacheMgr::GetInstance()->InsertItem(file.location, index);
}
LOG(DEBUG) << "Search Index Of Size: " << index->dim * index->ntotal * 4 /(1024*1024) << " M";
LOG(DEBUG) << "Search file_type " << file.file_type << " Of Size: "
<< index->dim * index->ntotal * 4 /(1024*1024) << " M";
index->search(nq, vectors, k, output_distence, output_ids);
cluster(output_ids, output_distence); // cluster to each query
memset(output_distence, 0, k * nq * sizeof(float));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册