Skip to content

Commit 1a3c56e

Browse files
guangy10facebook-github-bot
authored andcommitted
Disable flaky test TestQuantLoweringCustomBackendPass (#2465)
Summary: Pull Request resolved: #2465 imported-using-ghimport Test Plan: Imported from OSS Reviewed By: huydhn Differential Revision: D54966578 Pulled By: guangy10 fbshipit-source-id: a72067fc6cfccc9e53ef0c158919681ba03fd4d8
1 parent bad9c6e commit 1a3c56e

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

exir/tests/TARGETS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,7 @@ python_unittest(
247247
"test_quant_lowering_custom_backend_pass.py",
248248
],
249249
deps = [
250+
"//caffe2:test-lib", # @manual
250251
"//caffe2:torch",
251252
"//executorch/exir:lib",
252253
"//executorch/exir:pass_base",

exir/tests/test_quant_lowering_custom_backend_pass.py

Lines changed: 4 additions & 0 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,9 @@ class TestQuantLoweringCustomBackendPass(unittest.TestCase):
506507
def setUp(self) -> None:
507508
super().setUp()
508509

510+
@unittest.skipIf(
511+
IS_LINUX, "Flaky test on Linux x86, needs debugging. Issue is tracked in #2468"
512+
)
509513
@torch.inference_mode() # TODO Use for capturing.
510514
def test(self) -> None:
511515
mod = TestModel(

0 commit comments

Comments
 (0)