mirror of
https://github.com/facebookresearch/faiss.git
synced 2026-10-12 02:13:36 +00:00
clang-diagnostic-unused-parameter in bench_result_handler_overhead.cpp (#5481)
Summary: Pull Request resolved: https://github.com/facebookresearch/faiss/pull/5481 Reviewed By: limqiying Differential Revision: D113537265 fbshipit-source-id: a92d436db6385d8476609b3b1c648a870a7a0305
This commit is contained in:
committed by
meta-codesync[bot]
parent
d6d3dce8d7
commit
a9683455b7
@@ -46,8 +46,7 @@ std::pair<double, double> run_search(
|
||||
IndexData& data,
|
||||
int d,
|
||||
int k,
|
||||
int nprobe,
|
||||
const char* factory_string) {
|
||||
int nprobe) {
|
||||
ParameterSpace().set_index_parameter(data.index.get(), "nprobe", nprobe);
|
||||
|
||||
omp_set_num_threads(1);
|
||||
@@ -184,8 +183,7 @@ int main() {
|
||||
std::vector<faiss::BenchmarkResult> results;
|
||||
for (int k : ks) {
|
||||
for (int nprobe : nprobes) {
|
||||
auto [mean, std] = faiss::run_search(
|
||||
data, d, k, nprobe, index_factory.c_str());
|
||||
auto [mean, std] = faiss::run_search(data, d, k, nprobe);
|
||||
results.push_back({index_factory, d, k, nprobe, mean, std});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user