|
15 | 15 | from openvino.runtime import opset13 as opset
|
16 | 16 |
|
17 | 17 | from nncf.common.graph.graph import NNCFNode
|
| 18 | +from nncf.common.utils.os import is_macos |
18 | 19 | from nncf.openvino.graph.layer_attributes import OVLayerAttributes
|
19 | 20 | from nncf.openvino.graph.metatypes.openvino_metatypes import OVMatMulMetatype
|
20 | 21 | from nncf.openvino.graph.nncf_graph_builder import GraphConverter
|
@@ -153,10 +154,11 @@ def test_get_weight_channel_axes_for_matmul(weights_port_id, transpose, shape, d
|
153 | 154 | @pytest.mark.parametrize(
|
154 | 155 | "a,b,convertable,ref_result",
|
155 | 156 | [
|
156 |
| - (0.058599039912223816, 15, True, 0.003906603), |
157 |
| - (0.058599039912223816, 15, False, 0.003906602505594492), |
| 157 | + (0.0585990399, 15, True, 0.003906603), |
| 158 | + (0.0585990399, 15, False, 0.0039066025), |
158 | 159 | ],
|
159 | 160 | )
|
| 161 | +@pytest.mark.skipif(is_macos(), reason="Not relevant for MacOS, returns 0.0039062500 in both cases.") |
160 | 162 | def test_non_convertable_division(a, b, convertable, ref_result):
|
161 | 163 | a, b, ref_result = tuple(map(lambda x: np.array([x], np.float32), [a, b, ref_result]))
|
162 | 164 | a_param = opset.parameter((-1,), ov.Type.f32)
|
|
0 commit comments