Skip to content

Commit de2a3e5

Browse files
authored
Adjust rtol/atol for test_sum_keepdims (#14)
1 parent 94c48de commit de2a3e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/test_reductions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def test_sum_keepdims(self):
9191
code, output = code_and_output(
9292
sum_kernel_keepdims, args, block_size=16, indexing="block_ptr"
9393
)
94-
torch.testing.assert_close(output, args[0].sum(0, keepdim=True))
94+
torch.testing.assert_close(output, args[0].sum(0, keepdim=True), rtol=2e-05, atol=1e-05)
9595
self.assertExpectedInline(
9696
code,
9797
"""\

0 commit comments

Comments
 (0)