Skip to content

Commit 30e08e2

Browse files
committed
Adjust float32 test precision
1 parent a6b9bb9 commit 30e08e2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/tensor/test_blockwise.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,11 @@ def test_grad(self):
235235
)
236236
pt_out = pt_func(*vec_inputs_testvals)
237237
np_out = np_funcs[test_input_idx](*vec_inputs_testvals)
238-
np.testing.assert_allclose(pt_out, np_out, atol=1e-6)
238+
np.testing.assert_allclose(
239+
pt_out,
240+
np_out,
241+
atol=1e-6 if config.floatX == "float64" else 1e-5,
242+
)
239243

240244

241245
class MatrixOpBlockwiseTester(BlockwiseOpTester):

0 commit comments

Comments
 (0)