Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge from master #1427

Merged
merged 15 commits into from
Feb 29, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Refine code
Signed-off-by: jinhai <hai.jin@zilliz.com>
  • Loading branch information
JinHai-CN committed Feb 28, 2020
commit 7e31f2c5305fff3673d02ee93e986e1187e2b6ea
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ IndexHNSW::Search(const DatasetPtr& dataset, const Config& config) {
auto p_dist = (float*)malloc(dist_size * rows);

using P = std::pair<float, int64_t>;
auto compare = [](P& v1, P& v2) { return v1.first < v2.first; };
auto compare = [](const P& v1, const P& v2) { return v1.first < v2.first; };
#pragma omp parallel for
for (unsigned int i = 0; i < rows; ++i) {
std::vector<P> ret;
Expand Down