Skip to content

Commit

Permalink
minor refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
blaise-muhirwa committed Feb 3, 2024
1 parent 7337570 commit d859f55
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions experiments/run-big-bench.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,6 @@ def compute_metrics(
"""
is_flatnav_index = type(index) in (flatnav.index.L2Index, flatnav.index.IPIndex)
index.set_num_threads(1)
if is_flatnav_index:
start = time.time()
_, top_k_indices = index.search(
Expand Down Expand Up @@ -318,8 +317,7 @@ def main(
)
index.reorder(strategies=reordering_strategies)

if num_search_threads > 1:
index.set_num_threads(num_search_threads)
index.set_num_threads(num_search_threads)

recall, qps = compute_metrics(
index=index,
Expand Down

0 comments on commit d859f55

Please sign in to comment.