Temporarily disable qnnpack tests on MACOS (#29176)

Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/29176

Captured in issue  #27326

Test Plan:
python test/test_quantized.py test_qconv

Imported from OSS

Differential Revision: D18336184

fbshipit-source-id: 7394b04215b6c8b7bc0508f1648f23022bd031cb
This commit is contained in:
Supriya Rao 2019-11-05 18:51:15 -08:00 committed by Facebook Github Bot
parent ee8d5e5249
commit 6ea4219d20

View File

@ -12,7 +12,7 @@ from hypothesis import strategies as st
import hypothesis_utils as hu
from hypothesis_utils import no_deadline
from common_utils import TEST_WITH_UBSAN, TestCase, run_tests, IS_PPC
from common_utils import TEST_WITH_UBSAN, TestCase, run_tests, IS_PPC, IS_MACOS
from common_quantized import _quantize, _dequantize, _calculate_dynamic_qparams, \
override_quantized_engine
@ -1121,7 +1121,8 @@ class TestQuantizedLinear(unittest.TestCase):
return
decimal_val = 4
if qengine == 'qnnpack':
if IS_PPC or TEST_WITH_UBSAN:
# QNNPACK qlinear is flaky on MACOS. Issue #27326
if IS_PPC or TEST_WITH_UBSAN or IS_MACOS:
return
use_channelwise = False
use_multi_dim_input = False
@ -1488,7 +1489,8 @@ class TestQuantizedConv(unittest.TestCase):
if qengine not in torch.backends.quantized.supported_engines:
return
if qengine == 'qnnpack':
if IS_PPC or TEST_WITH_UBSAN:
# QNNPACK qconv is flaky on MACOS. Issue #27326
if IS_PPC or TEST_WITH_UBSAN or IS_MACOS:
return
use_channelwise = False