Skip to content

Commit b0bcbdc

Browse files
authored
Arm backend: relax tolerance for test_constant_pad_nd_vgf_quant (#19263)
### Summary 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. ### Test plan CI cc @digantdesai @freddan80 @per @zingo @oscarandersson8218 @mansnils @Sebastian-Larsson @robell
1 parent baa11bc commit b0bcbdc

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

backends/arm/test/ops/test_conv_constant_pad_nd.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,5 +139,7 @@ def test_constant_pad_nd_vgf_quant(test_data: Tuple):
139139
aten_op,
140140
exir_op,
141141
quantize=True,
142+
atol=0.005, # TODO: Investigate flakyness (MLETORCH-989)
143+
rtol=0.01,
142144
)
143145
pipeline.run()

0 commit comments

Comments
 (0)