Skip to content

Commit 9bb6b4b

Browse files
algoriddlefacebook-github-bot
authored andcommitted
fix test TestCrossCodebookComputations::test_precomp
Summary: To fix the nightly: https://app.circleci.com/pipelines/github/facebookresearch/faiss/4815/workflows/2027a135-72ee-459f-a092-7ada95affd41/jobs/26225 Reviewed By: mdouze Differential Revision: D50839933 fbshipit-source-id: 311b548182a2b3966c9603f83c115fa038eb19e8
1 parent c3b9374 commit 9bb6b4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_residual_quantizer.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1117,7 +1117,7 @@ def test_precomp(self):
11171117
K = 1 << rq.nbits.at(m)
11181118
cpp_table = codebook_cross_prods[ofs:ofs + K * kk].reshape(kk, K)
11191119
ofs += kk * K
1120-
np.testing.assert_allclose(py_table, cpp_table, rtol=2e-4)
1120+
np.testing.assert_allclose(py_table, cpp_table, atol=1e-5)
11211121

11221122
cent_norms = faiss.vector_to_array(rq.cent_norms)
11231123
np.testing.assert_array_almost_equal(

0 commit comments

Comments
 (0)