Skip to content

Commit 861ca48

Browse files
k-artempytorchmergebot
authored andcommitted
Fix bug in setup_tolerance
Bug introduced by ROCm@03c7da0 Signed-off-by: Artem Kuzmitckii <artem.kuzmitckii@amd.com>
1 parent 60a0174 commit 861ca48

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

test/inductor/test_decompose_mem_bound_mm.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,9 @@ def setup_tolerance(self, rtol=None, atol=None):
8282
if rtol is None:
8383
rtol = self.rtol
8484
if atol is None:
85-
atol = self.rtol
85+
atol = self.atol
86+
self.rtol = rtol
87+
self.atol = atol
8688

8789
def compare_dict_tensors(self, ref_dict, res_dict, rtol=None, atol=None):
8890
self.setup_tolerance(rtol, atol)

0 commit comments

Comments
 (0)