Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix bug
  • Loading branch information
ChunjiangZhu committed Oct 24, 2019
1 parent 04dcaa0 commit d9cf5dc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python_bindings/nmslib.cc
Expand Up @@ -150,6 +150,7 @@ struct IndexWrapper {
py::gil_scoped_release l;
index->Search(&rq, -1);
}
rq.Print();
return convertResult_rq(rq.ResultSet());
}

Expand Down Expand Up @@ -208,7 +209,7 @@ struct IndexWrapper {
while (it != res.end())
{
ids.mutable_at(i) = (*it)->id();
//distances.mutable_at(size) = res->at(i)->id();
distances.mutable_at(i) = 0.0;
it++; i++;
}
return py::make_tuple(ids, distances);
Expand Down

0 comments on commit d9cf5dc

Please sign in to comment.