Skip to content

Commit

Permalink
chore: cleanup TODO comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ahuber21 committed Feb 19, 2025
1 parent 4349625 commit 7bece3e
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions include/svs/index/inverted/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,12 @@ template <typename T> inline T bound_with(T nearest, T epsilon, svs::DistanceL2)
}

template <typename T> inline T bound_with(T nearest, T epsilon, svs::DistanceIP) {
// TODO: What do we do if the best match is simply bad?
assert(nearest > 0.0f);
return nearest / (1 + epsilon);
}

template <typename T>
inline T bound_with(T nearest, T epsilon, svs::DistanceCosineSimilarity) {
// TODO: This is just copy/paste from DistanceIP - is it correct?
assert(nearest > 0.0f);
return nearest / (1 + epsilon);
}
Expand Down

0 comments on commit 7bece3e

Please sign in to comment.