Skip to content

Commit 0399baf

Browse files
rascaniclaude
andcommitted
Cortex-M: Use default atol for ResNet8 dialect test
The dialect test was using atol=0.1 while the implementation test used the default atol=1e-03, which is backwards — the CPU graph comparison should not need a looser tolerance than hardware simulation. Remove the override; the test passes at the stricter default. Co-authored-by: Claude <noreply@anthropic.com>
1 parent 88dd3f4 commit 0399baf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

backends/cortex_m/test/models/test_resnet8.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
def test_dialect_resnet8(test_case):
4646
inputs = test_case.get_example_inputs()
4747
tester = CortexMTester(test_case.model, inputs)
48-
tester.test_dialect(ops_before_transforms, ops_after_transforms, qtol=1, atol=0.1)
48+
tester.test_dialect(ops_before_transforms, ops_after_transforms, qtol=1)
4949

5050

5151
@parametrize("test_case", test_cases)

0 commit comments

Comments
 (0)