From a03da8fbc793a37055549f6b68cb1a5de72e3071 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Lindstr=C3=B6m?= Date: Mon, 7 Apr 2025 09:36:06 +0200 Subject: [PATCH] Set all 16/32 bit sigmoid tests to flaky Tests in test_sigmoid_16bit.py and test_sigmoid_32bit.py randomly fails due to a Vela bug regarding handling of the table op sigmoid is converted to. Set all affected tests to flaky until the bug resolved. Change-Id: Ic4c34c1bbebe2bdc57f97df6578c2ea2d54971e6 --- backends/arm/test/ops/test_sigmoid_16bit.py | 10 ++++++---- backends/arm/test/ops/test_sigmoid_32bit.py | 10 ++++++---- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/backends/arm/test/ops/test_sigmoid_16bit.py b/backends/arm/test/ops/test_sigmoid_16bit.py index c3907887ac9..240000e6973 100644 --- a/backends/arm/test/ops/test_sigmoid_16bit.py +++ b/backends/arm/test/ops/test_sigmoid_16bit.py @@ -81,7 +81,7 @@ def forward(self, x): @common.parametrize("test_data", test_data_suite) -@pytest.mark.flaky(reruns=5) +@pytest.mark.flaky(reruns=32) # Flaky due to Vela bug: MLBEDSW-10642 def test_sigmoid_tosa_BI(test_data): pipeline = TosaPipelineBI( Sigmoid(), (test_data(),), Sigmoid.aten_op, Sigmoid.exir_op @@ -97,7 +97,7 @@ def test_sigmoid_tosa_BI(test_data): "ramp": "AssertionError: Output 0 does not match reference output. MLETORCH-787" }, ) -@pytest.mark.flaky(reruns=5) +@pytest.mark.flaky(reruns=32) # Flaky due to Vela bug: MLBEDSW-10642 def test_sigmoid_add_sigmoid_tosa_BI(test_data): pipeline = TosaPipelineBI( SigmoidAddSigmoid(), (test_data(),), Sigmoid.aten_op, Sigmoid.exir_op @@ -110,6 +110,7 @@ def test_sigmoid_add_sigmoid_tosa_BI(test_data): "test_data", test_data_suite, ) +@pytest.mark.flaky(reruns=32) # Flaky due to Vela bug: MLBEDSW-10642 def test_sigmoid_tosa_u55(test_data): pipeline = OpNotSupportedPipeline( Sigmoid(), (test_data(),), "TOSA-0.80+BI+u55", {Sigmoid.exir_op: 1} @@ -122,6 +123,7 @@ def test_sigmoid_tosa_u55(test_data): "test_data", test_data_suite, ) +@pytest.mark.flaky(reruns=32) # Flaky due to Vela bug: MLBEDSW-10642 def test_sigmoid_add_sigmoid_tosa_u55(test_data): pipeline = OpNotSupportedPipeline( SigmoidAddSigmoid(), @@ -135,7 +137,7 @@ def test_sigmoid_add_sigmoid_tosa_u55(test_data): @common.parametrize("test_data", test_data_suite) -@pytest.mark.flaky(reruns=5) +@pytest.mark.flaky(reruns=32) # Flaky due to Vela bug: MLBEDSW-10642 @common.XfailIfNoCorstone320 def test_sigmoid_tosa_u85(test_data): pipeline = EthosU85PipelineBI( @@ -152,7 +154,7 @@ def test_sigmoid_tosa_u85(test_data): "ramp": "AssertionError: Output 0 does not match reference output.", }, ) -@pytest.mark.flaky(reruns=5) +@pytest.mark.flaky(reruns=32) # Flaky due to Vela bug: MLBEDSW-10642 @common.XfailIfNoCorstone320 def test_sigmoid_add_sigmoid_tosa_u85(test_data): pipeline = EthosU85PipelineBI( diff --git a/backends/arm/test/ops/test_sigmoid_32bit.py b/backends/arm/test/ops/test_sigmoid_32bit.py index 5388eae83c3..14808eedaf9 100644 --- a/backends/arm/test/ops/test_sigmoid_32bit.py +++ b/backends/arm/test/ops/test_sigmoid_32bit.py @@ -97,7 +97,7 @@ def forward(self, x): @common.parametrize("test_data", test_data_suite) -@pytest.mark.flaky(reruns=5) +@pytest.mark.flaky(reruns=32) # Flaky due to Vela bug: MLBEDSW-10642 def test_sigmoid_tosa_BI(test_data): pipeline = TosaPipelineBI( Sigmoid(), @@ -110,7 +110,7 @@ def test_sigmoid_tosa_BI(test_data): @common.parametrize("test_data", test_data_suite) -@pytest.mark.flaky(reruns=5) +@pytest.mark.flaky(reruns=32) # Flaky due to Vela bug: MLBEDSW-10642 def test_sigmoid_add_sigmoid_tosa_BI(test_data): pipeline = TosaPipelineBI( SigmoidAddSigmoid(), @@ -123,6 +123,7 @@ def test_sigmoid_add_sigmoid_tosa_BI(test_data): @common.parametrize("test_data", test_data_suite) +@pytest.mark.flaky(reruns=32) # Flaky due to Vela bug: MLBEDSW-10642 def test_sigmoid_tosa_u55(test_data): pipeline = OpNotSupportedPipeline( Sigmoid(), (test_data(),), "TOSA-0.80+BI+u55", {Sigmoid.exir_op: 1} @@ -132,6 +133,7 @@ def test_sigmoid_tosa_u55(test_data): @common.parametrize("test_data", test_data_suite) +@pytest.mark.flaky(reruns=32) # Flaky due to Vela bug: MLBEDSW-10642 def test_sigmoid_add_sigmoid_tosa_u55(test_data): pipeline = OpNotSupportedPipeline( SigmoidAddSigmoid(), @@ -145,7 +147,7 @@ def test_sigmoid_add_sigmoid_tosa_u55(test_data): @common.parametrize("test_data", test_data_suite) -@pytest.mark.flaky(reruns=5) +@pytest.mark.flaky(reruns=32) # Flaky due to Vela bug: MLBEDSW-10642 @common.XfailIfNoCorstone320 def test_sigmoid_tosa_u85(test_data): pipeline = EthosU85PipelineBI( @@ -162,7 +164,7 @@ def test_sigmoid_tosa_u85(test_data): "ramp": "AssertionError: Output 0 does not match reference output.", }, ) -@pytest.mark.flaky(reruns=5) +@pytest.mark.flaky(reruns=32) # Flaky due to Vela bug: MLBEDSW-10642 @common.XfailIfNoCorstone320 def test_sigmoid_add_sigmoid_tosa_u85(test_data): pipeline = EthosU85PipelineBI(