Skip to content

Commit 12485ba

Browse files
authored
Increase atol/rtol for test_error_in_non_taken_branch (#142)
1 parent 3ccadfd commit 12485ba

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/test_control_flow.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,8 @@ def mul_relu_block_backward_kernel(
255255
torch.testing.assert_close(
256256
mul_relu_block_backward_kernel(x, y, dz, False),
257257
expected,
258+
atol=1e-4,
259+
rtol=1e-4,
258260
)
259261
code, output = code_and_output(
260262
mul_relu_block_backward_kernel,
@@ -333,6 +335,8 @@ def _mul_relu_block_backward_kernel_make_precompiler(x: torch.Tensor, y: torch.T
333335
torch.testing.assert_close(
334336
output,
335337
expected,
338+
atol=1e-4,
339+
rtol=1e-4,
336340
)
337341

338342

0 commit comments

Comments
 (0)