Skip to content

Commit c8d6f7b

Browse files
mdouzefacebook-github-bot
authored andcommitted
fix CI issues after cross-matrix diff (facebookresearch#3042)
Summary: Pull Request resolved: facebookresearch#3042 to fix nightly builds Reviewed By: mlomeli1 Differential Revision: D48969974 fbshipit-source-id: b7206aac907ed65caf182a95cf22ec463bb58dc4
1 parent 4699365 commit c8d6f7b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

faiss/MatrixStats.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
#include <stdarg.h> /* va_list, va_start, va_arg, va_end */
1313

1414
#include <faiss/utils/utils.h>
15-
#include <inttypes.h>
15+
#include <cinttypes>
1616
#include <cmath>
1717
#include <cstdio>
1818

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=1e-4)
1120+
np.testing.assert_allclose(py_table, cpp_table, rtol=2e-4)
11211121

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

0 commit comments

Comments
 (0)