[CI] [GHA] Introduce macOS ARM64 as a matrix parameter in the macOS pipeline (#20363)
* add m1 mac pipelines as a matrix parameter * Update mac.yml disable java_api because of macos arm64 - Java is not available on macOS arm64 runners * Update mac.yml added always condition for all tests * Update mac.yml * Update mac.yml * Update mac.yml * Update setup.py temp commit * Update tools/openvino_dev/setup.py * use matrix for var * add mxnet to extras only for x86_64 * skip failing tests * use xfail for Python tests; add missing filter for transformations tests * skip CPU func tests on x86_64 mac; skip some tests from CPU func tests on arm mac * Update mac.yml * skip tests on mac arm * skip tests on darwin; apply review * add more skips for python and c++ tests * skip tf tests * skip more tf tests; skip more Python UT stages * rm alwayses, rm triggers, add nightly trigger --------- Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>
This commit is contained in:
1 parent
4fe6d5ec54
commit
b67cff7cd5
62 files changed
+425
-43
No files matched your search
@@ -1,15 +1,19 @@
|
||||
# Copyright (C) 2018-2023 Intel Corporation
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import platform
|
||||
import os
|
||||
|
||||
import numpy as np
|
||||
import ngraph as ng
|
||||
import pytest
|
||||
from openvino.inference_engine import IECore
|
||||
|
||||
from tests_compatibility.runtime import get_runtime
|
||||
|
||||
|
||||
@pytest.mark.xfail(condition=platform.system() == 'Darwin' and platform.machine() == 'arm64',
|
||||
reason='Ticket - 122712')
|
||||
def test_import_onnx_with_external_data():
|
||||
model_path = os.path.join(os.path.dirname(__file__), "models/external_data.onnx")
|
||||
ie = IECore()
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
# Copyright (C) 2018-2023 Intel Corporation
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import platform
|
||||
|
||||
import numpy as np
|
||||
import onnx
|
||||
import pytest
|
||||
@@ -45,6 +47,8 @@ def test_relu():
|
||||
assert_onnx_import_equals_callable("Relu", relu, [[-3, -2, -1], [1, 2, 3]])
|
||||
|
||||
|
||||
@pytest.mark.xfail(condition=platform.system() == 'Darwin' and platform.machine() == 'arm64',
|
||||
reason='Ticket - 122712')
|
||||
def test_leaky_relu():
|
||||
def leaky_relu(x, alpha=0.01):
|
||||
return np.maximum(alpha * x, x)
|
||||
@@ -79,6 +83,8 @@ def test_parametric_relu(x, slope):
|
||||
assert np.allclose(output, expected_output)
|
||||
|
||||
|
||||
@pytest.mark.xfail(condition=platform.system() == 'Darwin' and platform.machine() == 'arm64',
|
||||
reason='Ticket - 122712')
|
||||
def test_selu():
|
||||
# f(x) = gamma * (alpha * exp(x) - alpha) for x <= 0, y = gamma * x for x > 0
|
||||
def selu(x, alpha=1.67326319217681884765625, gamma=1.05070102214813232421875):
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
# Copyright (C) 2018-2023 Intel Corporation
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
import platform
|
||||
|
||||
import numpy as np
|
||||
import onnx
|
||||
import onnx.mapping
|
||||
@@ -210,6 +212,8 @@ def test_hardmax_special_cases():
|
||||
assert np.allclose(ng_results, [expected])
|
||||
|
||||
|
||||
@pytest.mark.xfail(condition=platform.system() == 'Darwin' and platform.machine() == 'arm64',
|
||||
reason='Ticket - 122712')
|
||||
def test_hardsigmoid():
|
||||
def hardsigmoid(data, alpha=0.2, beta=0.5):
|
||||
return np.clip(alpha * data + beta, 0, 1)
|
||||
@@ -447,6 +451,8 @@ def test_cast_errors():
|
||||
@pytest.mark.parametrize("value_type",
|
||||
[pytest.param(np.float64),
|
||||
pytest.param(np.float32)])
|
||||
@pytest.mark.xfail(condition=platform.system() == 'Darwin' and platform.machine() == 'arm64',
|
||||
reason='Ticket - 122712')
|
||||
def test_constant(value_type):
|
||||
values = np.random.randn(5, 5).astype(value_type)
|
||||
node = onnx.helper.make_node(
|
||||
|
||||
Reference in new issue
Block a user