Skip to content

Commit 22c5be2

Browse files
committed
Reduce atol and rtol in matrix multiplication tests
1 parent 85f4421 commit 22c5be2

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

tests/test_mm.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ def generate_arguments():
1212

1313
for dtype in (torch.float32, torch.float16):
1414
if dtype is torch.float32:
15-
atol = 0.05
16-
rtol = 0.05
15+
atol = 0.001
16+
rtol = 0.001
1717
else:
18-
atol = 0.025
19-
rtol = 0.025
18+
atol = 0.01
19+
rtol = 0.01
2020

2121
def generate_random_size():
2222
return random.randint(1, 1024)

0 commit comments

Comments
 (0)