From 9009ac8c1a557bbd7ed85be6548daf668e063b67 Mon Sep 17 00:00:00 2001 From: Xiao Fu Date: Thu, 16 May 2024 11:24:39 -0700 Subject: [PATCH] Improve testing code step 1 Summary: This is a first step to clean up the faiss codebase following T187322081 Differential Revision: D57448335 --- tests/test_index_binary.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/tests/test_index_binary.py b/tests/test_index_binary.py index 3acf622fd4..7820cb6627 100644 --- a/tests/test_index_binary.py +++ b/tests/test_index_binary.py @@ -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) @@ -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