Skip to content

Commit

Permalink
Fix an assert that is no longer valid
Browse files Browse the repository at this point in the history
This PR introduces alignment into the cluster sizes and thus the total
index size exceeds `n_rows`.
  • Loading branch information
achirkin committed Nov 16, 2022
1 parent 8665705 commit d64799f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/pylibraft/pylibraft/test/test_ivf_pq.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def run_ivf_pq_build_search_test(
index = ivf_pq.extend(index, dataset_1_device, indices_1_device)
index = ivf_pq.extend(index, dataset_2_device, indices_2_device)

assert index.size == n_rows
assert index.size >= n_rows

queries = generate_data((n_queries, n_cols), dtype)
out_idx = np.zeros((n_queries, k), dtype=np.uint64)
Expand Down

0 comments on commit d64799f

Please sign in to comment.