Skip to content

Commit dda60ff

Browse files
committed
Disable flaky test TestQuantLoweringCustomBackendPass
ghstack-source-id: 67dcc5e Pull Request resolved: #2465
1 parent b830021 commit dda60ff

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

exir/tests/test_quant_lowering_custom_backend_pass.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@
6565
from torch.fx import subgraph_rewriter
6666
from torch.fx.passes.infra.pass_base import PassResult
6767
from torch.testing import FileCheck
68+
from torch.testing._internal.common_utils import IS_LINUX
6869

6970

7071
# pyre-ignore
@@ -506,6 +507,7 @@ class TestQuantLoweringCustomBackendPass(unittest.TestCase):
506507
def setUp(self) -> None:
507508
super().setUp()
508509

510+
@unittest.skipIf(IS_LINUX, "Flaky test on Linux x86, needs debugging")
509511
@torch.inference_mode() # TODO Use for capturing.
510512
def test(self) -> None:
511513
mod = TestModel(
@@ -975,10 +977,7 @@ def test_qat_linear(self) -> None:
975977
backend_config=get_executorch_backend_config(),
976978
)
977979
print("converted:", converted_mod)
978-
captured_mod = exir.capture(
979-
converted_mod,
980-
example_inputs,
981-
).to_edge(
980+
captured_mod = exir.capture(converted_mod, example_inputs,).to_edge(
982981
exir.EdgeCompileConfig(_check_ir_validity=False, _use_edge_ops=True)
983982
)
984983

0 commit comments

Comments
 (0)