From 333a8dbbec397f8e881d1bd13cd4f67df38a147c Mon Sep 17 00:00:00 2001 From: RJ Ascani Date: Thu, 30 Apr 2026 15:28:36 -0700 Subject: [PATCH] Arm backend: relax tolerance for test_constant_pad_nd_vgf_quant The VGF + INT8 quantized pipeline for constant_pad_nd hits the same randomized-input numerical drift the TOSA INT variant has been working around since MLETORCH-989: the test_data_suite uses unseeded torch.rand so unfortunate input draws produce a single-element max abs diff (~6e-3) that exceeds the default atol (~4e-3). Apply the same atol/rtol the TOSA INT variant uses (atol=0.005, rtol=0.01) so the VGF run shares the existing umbrella ticket rather than continuing to flake on the same underlying issue. Authored with Claude Code. --- backends/arm/test/ops/test_conv_constant_pad_nd.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backends/arm/test/ops/test_conv_constant_pad_nd.py b/backends/arm/test/ops/test_conv_constant_pad_nd.py index b75d9af957b..d26a1f2d90d 100644 --- a/backends/arm/test/ops/test_conv_constant_pad_nd.py +++ b/backends/arm/test/ops/test_conv_constant_pad_nd.py @@ -139,5 +139,7 @@ def test_constant_pad_nd_vgf_quant(test_data: Tuple): aten_op, exir_op, quantize=True, + atol=0.005, # TODO: Investigate flakyness (MLETORCH-989) + rtol=0.01, ) pipeline.run()