Skip to content

Commit 4972abd

Browse files
Xiao Fufacebook-github-bot
Xiao Fu
authored andcommitted
Improve testing code step 1 (facebookresearch#3451)
Summary: Pull Request resolved: facebookresearch#3451 This is a first step to clean up the faiss codebase following T187322081 Reviewed By: junjieqi Differential Revision: D57448335 fbshipit-source-id: c9760d01479d3352b786bbcf2015251e7a7168d6
1 parent 1876925 commit 4972abd

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

tests/test_index_binary.py

-3
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,6 @@ def test_range_search(self):
142142
self.assertTrue(set(range_res) <= set(I[i]))
143143
nt2 += 1
144144
# in case of equality we have a problem with ties
145-
print('nb tests', nt1, nt2)
146145
# nb tests is actually low...
147146
self.assertTrue(nt1 > 19 and nt2 > 19)
148147

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

290-
print(D[0], ref_D[0])
291-
print(I[0], ref_I[0])
292289
assert np.all(D == ref_D)
293290
# assert np.all(I == ref_I) # id may be different
294291

0 commit comments

Comments
 (0)