Skip to content

Commit

Permalink
Improve testing code step 1
Browse files Browse the repository at this point in the history
Summary: This is a first step to clean up the faiss codebase following T187322081

Differential Revision: D57448335
  • Loading branch information
Xiao Fu authored and facebook-github-bot committed May 16, 2024
1 parent 1876925 commit 9009ac8
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions tests/test_index_binary.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,6 @@ def test_range_search(self):
self.assertTrue(set(range_res) <= set(I[i]))
nt2 += 1
# in case of equality we have a problem with ties
print('nb tests', nt1, nt2)
# nb tests is actually low...
self.assertTrue(nt1 > 19 and nt2 > 19)

Expand Down Expand Up @@ -287,8 +286,6 @@ def test_ivf_nprobe(self):
ref_index.add(xb)
ref_D, ref_I = ref_index.search(xq, k)

print(D[0], ref_D[0])
print(I[0], ref_I[0])
assert np.all(D == ref_D)
# assert np.all(I == ref_I) # id may be different

Expand Down

0 comments on commit 9009ac8

Please sign in to comment.