Skip to content

Commit

Permalink
Merge pull request #224 from uestc-lfs/fix-update-ep
Browse files Browse the repository at this point in the history
currObj should be updated as the closest from all candidated.
  • Loading branch information
yurymalkov authored Dec 7, 2020
2 parents 334cc6c + fa32338 commit b4b7b86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hnswlib/hnswalg.h
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ namespace hnswlib {
top_candidates.pop();
}

tableint next_closest_entry_point = selectedNeighbors[0];
tableint next_closest_entry_point = selectedNeighbors.back();

{
linklistsizeint *ll_cur;
Expand Down

0 comments on commit b4b7b86

Please sign in to comment.