33# This source code is licensed under the BSD-style license found in the
44# LICENSE file in the root directory of this source tree.
55
6- import pytest
76import torch
87from executorch .backends .arm .quantizer import TOSAQuantizer
98from executorch .backends .arm .quantizer .quantization_config import QuantizationConfig
@@ -107,33 +106,32 @@ def forward(self, x):
107106
108107
109108@common .parametrize ("test_data" , test_data_suite )
110- @pytest .mark .flaky (reruns = 32 ) # Flaky due to Vela bug: MLBEDSW-10642
111109def test_sigmoid_tosa_BI (test_data ):
112110 pipeline = TosaPipelineBI (
113111 Sigmoid (),
114112 (test_data (),),
115113 Sigmoid .aten_op ,
116114 Sigmoid .exir_op ,
115+ qtol = 1 ,
117116 )
118117 pipeline .change_args ("quantize" , get_32bit_sigmoid_quantizer ())
119118 pipeline .run ()
120119
121120
122121@common .parametrize ("test_data" , test_data_suite )
123- @pytest .mark .flaky (reruns = 32 ) # Flaky due to Vela bug: MLBEDSW-10642
124122def test_sigmoid_tosa_BI_add_sigmoid (test_data ):
125123 pipeline = TosaPipelineBI (
126124 SigmoidAddSigmoid (),
127125 (test_data (),),
128126 Sigmoid .aten_op ,
129127 Sigmoid .exir_op ,
128+ qtol = 1 ,
130129 )
131130 pipeline .change_args ("quantize" , get_32bit_sigmoid_quantizer ())
132131 pipeline .run ()
133132
134133
135134@common .parametrize ("test_data" , test_data_suite )
136- @pytest .mark .flaky (reruns = 32 ) # Flaky due to Vela bug: MLBEDSW-10642
137135def test_sigmoid_u55_BI (test_data ):
138136 pipeline = OpNotSupportedPipeline (
139137 Sigmoid (),
@@ -147,7 +145,6 @@ def test_sigmoid_u55_BI(test_data):
147145
148146
149147@common .parametrize ("test_data" , test_data_suite )
150- @pytest .mark .flaky (reruns = 32 ) # Flaky due to Vela bug: MLBEDSW-10642
151148def test_sigmoid_u55_BI_add_sigmoid (test_data ):
152149 pipeline = OpNotSupportedPipeline (
153150 SigmoidAddSigmoid (),
@@ -162,9 +159,7 @@ def test_sigmoid_u55_BI_add_sigmoid(test_data):
162159
163160
164161@common .parametrize ("test_data" , test_data_suite )
165- @pytest .mark .flaky (reruns = 32 ) # Flaky due to Vela bug: MLBEDSW-10642
166162@common .XfailIfNoCorstone320
167- @pytest .mark .flaky (reruns = 5 )
168163def test_sigmoid_u85_BI (test_data ):
169164 pipeline = EthosU85PipelineBI (
170165 Sigmoid (),
@@ -180,15 +175,8 @@ def test_sigmoid_u85_BI(test_data):
180175@common .parametrize (
181176 "test_data" ,
182177 test_data_suite ,
183- xfails = {
184- "ramp" : "AssertionError: Output 0 does not match reference output." ,
185- "rand" : "AssertionError: Output 0 does not match reference output." ,
186- "rand_4d" : "AssertionError: Output 0 does not match reference output." ,
187- },
188178)
189- @pytest .mark .flaky (reruns = 32 ) # Flaky due to Vela bug: MLBEDSW-10642
190179@common .XfailIfNoCorstone320
191- @pytest .mark .flaky (reruns = 5 )
192180def test_sigmoid_u85_BI_add_sigmoid (test_data ):
193181 pipeline = EthosU85PipelineBI (
194182 SigmoidAddSigmoid (),
0 commit comments