Skip to content

Commit a16475b

Browse files
committed
TST: bump single precision test tolerance in test_qr (a flaky test)
1 parent 544e899 commit a16475b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

torch_np/tests/numpy_tests/linalg/test_linalg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1694,7 +1694,7 @@ def check_qr_stacked(self, a):
16941694
assert_(isinstance(r1, a_type))
16951695
assert_(q1.shape[-2:] == (m, k))
16961696
assert_(r1.shape[-2:] == (k, n))
1697-
assert_almost_equal(matmul(q1, r1), a)
1697+
assert_almost_equal(matmul(q1, r1), a, single_decimal=5)
16981698
I_mat = np.identity(q1.shape[-1])
16991699
stack_I_mat = np.broadcast_to(I_mat,
17001700
q1.shape[:-2] + (q1.shape[-1],)*2)

0 commit comments

Comments
 (0)