Skip to content

Commit

Permalink
[TF FE] Skip layer test for Prod on complex tensors on ARM due to acc…
Browse files Browse the repository at this point in the history
…uracy issue (#26602)

**Details:** Skip layer test for Prod on complex tensors on ARM due to
accuracy issue

**Ticket:** TBD

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
  • Loading branch information
rkazants committed Sep 14, 2024
1 parent 00861cd commit 9456e8a
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@
# SPDX-License-Identifier: Apache-2.0

import numpy as np
import platform
import pytest
from common.tf_layer_test_class import CommonTFLayerTest

rng = np.random.default_rng(475912)


class TestReduceArithmeticOps(CommonTFLayerTest):
def _prepare_input(self, inputs_info):
assert 'input:0' in inputs_info, "Test error: inputs_info must contain `input`"
Expand Down Expand Up @@ -74,7 +76,7 @@ def create_complex_prod_net(self, shape, axis, keep_dims, ir_version, use_legacy
complex = tf.raw_ops.Complex(real=param_real, imag=param_imag)

result = tf.raw_ops.Prod(input=complex, axis=axis, keep_dims=keep_dims, name="Prod")

tf.raw_ops.Real(input=result)
tf.raw_ops.Imag(input=result)

Expand All @@ -95,9 +97,11 @@ def create_complex_prod_net(self, shape, axis, keep_dims, ir_version, use_legacy
@pytest.mark.precommit
def test_reduce(self, params, keep_dims, ie_device, precision, ir_version, temp_dir,
use_legacy_frontend):
if platform.machine() in ["aarch64", "arm64", "ARM64"]:
pytest.skip("GFI-26601: accuracy error on ARM")
if ie_device == 'GPU' and params['shape'] in [[2, 3, 5], [3, 1, 2, 4]]:
pytest.skip('GPU plugin accuracy error')
self._test(*self.create_complex_prod_net(**params, keep_dims=keep_dims, ir_version=ir_version,
use_legacy_frontend=use_legacy_frontend),
use_legacy_frontend=use_legacy_frontend),
ie_device, precision, ir_version, temp_dir=temp_dir,
use_legacy_frontend=use_legacy_frontend)

0 comments on commit 9456e8a

Please sign in to comment.