mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-07 12:21:27 +01:00
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:
parent
ee8d5e5249
commit
6ea4219d20
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user