Skip to content

Commit 58fff40

Browse files
authored
Relax bounds on test_mask_dot (#182)
1 parent ae7cd4a commit 58fff40

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/test_masking.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,9 @@ def _add1mm_make_precompiler(x, y):
8989
from helion.runtime.precompile_shim import make_precompiler
9090
return make_precompiler(_add1mm_kernel)(x, y, out, out.stride(0), out.stride(1), x.stride(0), x.stride(1), y.stride(0), y.stride(1), m, n, k, _BLOCK_SIZE_0, _BLOCK_SIZE_1, _BLOCK_SIZE_2, num_warps=4, num_stages=3)""",
9191
)
92-
torch.testing.assert_close(result, (args[0] + 1) @ (args[1] + 1))
92+
torch.testing.assert_close(
93+
result, (args[0] + 1) @ (args[1] + 1), rtol=1e-2, atol=1e-1
94+
)
9395

9496
def test_no_mask_views0(self):
9597
@helion.kernel(config={"block_sizes": [32]})

0 commit comments

Comments
 (0)