3
3
# This source code is licensed under the BSD-style license found in the
4
4
# LICENSE file in the root directory of this source tree.
5
5
6
- import pytest
7
6
import torch
8
7
from executorch .backends .arm .quantizer import TOSAQuantizer
9
8
from executorch .backends .arm .quantizer .quantization_config import QuantizationConfig
@@ -107,33 +106,32 @@ def forward(self, x):
107
106
108
107
109
108
@common .parametrize ("test_data" , test_data_suite )
110
- @pytest .mark .flaky (reruns = 32 ) # Flaky due to Vela bug: MLBEDSW-10642
111
109
def test_sigmoid_tosa_BI (test_data ):
112
110
pipeline = TosaPipelineBI (
113
111
Sigmoid (),
114
112
(test_data (),),
115
113
Sigmoid .aten_op ,
116
114
Sigmoid .exir_op ,
115
+ qtol = 1 ,
117
116
)
118
117
pipeline .change_args ("quantize" , get_32bit_sigmoid_quantizer ())
119
118
pipeline .run ()
120
119
121
120
122
121
@common .parametrize ("test_data" , test_data_suite )
123
- @pytest .mark .flaky (reruns = 32 ) # Flaky due to Vela bug: MLBEDSW-10642
124
122
def test_sigmoid_tosa_BI_add_sigmoid (test_data ):
125
123
pipeline = TosaPipelineBI (
126
124
SigmoidAddSigmoid (),
127
125
(test_data (),),
128
126
Sigmoid .aten_op ,
129
127
Sigmoid .exir_op ,
128
+ qtol = 1 ,
130
129
)
131
130
pipeline .change_args ("quantize" , get_32bit_sigmoid_quantizer ())
132
131
pipeline .run ()
133
132
134
133
135
134
@common .parametrize ("test_data" , test_data_suite )
136
- @pytest .mark .flaky (reruns = 32 ) # Flaky due to Vela bug: MLBEDSW-10642
137
135
def test_sigmoid_u55_BI (test_data ):
138
136
pipeline = OpNotSupportedPipeline (
139
137
Sigmoid (),
@@ -147,7 +145,6 @@ def test_sigmoid_u55_BI(test_data):
147
145
148
146
149
147
@common .parametrize ("test_data" , test_data_suite )
150
- @pytest .mark .flaky (reruns = 32 ) # Flaky due to Vela bug: MLBEDSW-10642
151
148
def test_sigmoid_u55_BI_add_sigmoid (test_data ):
152
149
pipeline = OpNotSupportedPipeline (
153
150
SigmoidAddSigmoid (),
@@ -162,9 +159,7 @@ def test_sigmoid_u55_BI_add_sigmoid(test_data):
162
159
163
160
164
161
@common .parametrize ("test_data" , test_data_suite )
165
- @pytest .mark .flaky (reruns = 32 ) # Flaky due to Vela bug: MLBEDSW-10642
166
162
@common .XfailIfNoCorstone320
167
- @pytest .mark .flaky (reruns = 5 )
168
163
def test_sigmoid_u85_BI (test_data ):
169
164
pipeline = EthosU85PipelineBI (
170
165
Sigmoid (),
@@ -180,15 +175,8 @@ def test_sigmoid_u85_BI(test_data):
180
175
@common .parametrize (
181
176
"test_data" ,
182
177
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
- },
188
178
)
189
- @pytest .mark .flaky (reruns = 32 ) # Flaky due to Vela bug: MLBEDSW-10642
190
179
@common .XfailIfNoCorstone320
191
- @pytest .mark .flaky (reruns = 5 )
192
180
def test_sigmoid_u85_BI_add_sigmoid (test_data ):
193
181
pipeline = EthosU85PipelineBI (
194
182
SigmoidAddSigmoid (),
0 commit comments