Commit 3cbce72
committed
Arm backend: Stabilize VGF bilinear fp16 test
This patch fixes a flaky VGF no-quant Interpolate test for
upsample_bilinear2d fp16 inputs.
The neighboring VGF Upsample test already uses looser fp16 comparison
tolerances, while the Interpolate variant still used the default 1e-3
atol/rtol. The observed fp16 output difference can be slightly above
that default threshold.
Match the Upsample behavior by using 1e-2 atol/rtol for fp16 inputs
and keeping 1e-3 atol/rtol for other dtypes.
The change was verified with collection of the targeted VGF Interpolate
pytest cases.
Signed-off-by: Baris Demir <baris.demir@arm.com>
Change-Id: I83e62f2241d418100d3fa9df5883b2935bd751a11 parent 803e47d commit 3cbce72
1 file changed
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
551 | 551 | | |
552 | 552 | | |
553 | 553 | | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
554 | 561 | | |
555 | 562 | | |
556 | 563 | | |
557 | 564 | | |
558 | 565 | | |
559 | 566 | | |
| 567 | + | |
| 568 | + | |
560 | 569 | | |
561 | 570 | | |
562 | 571 | | |
| |||
0 commit comments