Skip to content

Commit

Permalink
fix CI issues after cross-matrix diff (#3042)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: #3042

to fix nightly builds

Reviewed By: mlomeli1

Differential Revision: D48969974

fbshipit-source-id: b7206aac907ed65caf182a95cf22ec463bb58dc4
  • Loading branch information
mdouze authored and facebook-github-bot committed Sep 6, 2023
1 parent 4699365 commit c8d6f7b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion faiss/MatrixStats.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#include <stdarg.h> /* va_list, va_start, va_arg, va_end */

#include <faiss/utils/utils.h>
#include <inttypes.h>
#include <cinttypes>
#include <cmath>
#include <cstdio>

Expand Down
2 changes: 1 addition & 1 deletion tests/test_residual_quantizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -1117,7 +1117,7 @@ def test_precomp(self):
K = 1 << rq.nbits.at(m)
cpp_table = codebook_cross_prods[ofs:ofs + K * kk].reshape(kk, K)
ofs += kk * K
np.testing.assert_allclose(py_table, cpp_table, rtol=1e-4)
np.testing.assert_allclose(py_table, cpp_table, rtol=2e-4)

cent_norms = faiss.vector_to_array(rq.cent_norms)
np.testing.assert_array_almost_equal(
Expand Down

0 comments on commit c8d6f7b

Please sign in to comment.