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

Benchmark brute force knn #2063

Merged
merged 12 commits into from
Dec 20, 2023
Prev Previous commit
Next Next commit
.
  • Loading branch information
benfred committed Dec 13, 2023
commit aa98240bb3afacec32843fc74e8acc82a2eae0a3
1 change: 1 addition & 0 deletions cpp/bench/ann/src/raft/raft_wrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ inline raft::distance::DistanceType parse_metric_type(raft::bench::ann::Metric m
switch (metric) {
case raft::bench::ann::Metric::kInnerProduct: return raft::distance::DistanceType::InnerProduct;
case raft::bench::ann::Metric::kEuclidean: return raft::distance::DistanceType::L2Expanded;
default: throw std::runtime_error("raft supports only metric type of inner product and L2");
}
}
} // namespace raft_temp
Expand Down