Skip to content

Commit cca4dd3

Browse files
committed
Relax conv1d test tolerances
1 parent 3405317 commit cca4dd3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

backends/xnnpack/test/ops/test_conv1d.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,9 @@ def _test_conv1d(
126126
# quantized operators to be loaded and we don't want to do that in the test.
127127
if not skip_to_executorch:
128128
tester.to_executorch().serialize().run_method_and_compare_outputs(
129-
num_runs=10, atol=0.02, rtol=0.02
129+
num_runs=10,
130+
atol=0.04 if quantized else 1e-03,
131+
rtol=0.02 if quantized else 1e-03,
130132
)
131133

132134
def test_fp16_conv1d(self):

0 commit comments

Comments
 (0)