OpenVINO™ is an open source toolkit for optimizing and deploying AI inference
C++ aicomputer-visiondeep-learningdeploy-aidiffusion-modelsgenerative-aigood-first-issueinferencellm-inferencenatural-language-processingnlpopenvinooptimize-aiperformance-boostrecommendation-systemspeech-recognitionstable-diffusiontransformersyolo
[TF FE] Run string ops tests on ARM (#27367)
Roman Kazantseva488aec3812c
diff --git a/tests/layer_tests/tensorflow_tests/test_tf_LookupTableFind.py b/tests/layer_tests/tensorflow_tests/test_tf_LookupTableFind.pyindex bd1422f8719..97177a5adee 100644--- a/tests/layer_tests/tensorflow_tests/test_tf_LookupTableFind.py+++ b/tests/layer_tests/tensorflow_tests/test_tf_LookupTableFind.py@@ -1,8 +1,6 @@# Copyright (C) 2018-2024 Intel Corporation# SPDX-License-Identifier: Apache-2.0-import platform-import numpy as npimport pytestimport tensorflow as tf@@ -91,12 +89,6 @@ class TestLookupTableFindOps(CommonTFLayerTest):if ie_device == 'GPU' or run_in_jenkins():pytest.skip("operation extesion is not supported on GPU or ""No layout format available for gather:LookupTableFind issue")- if params['keys_type'] == str:- if platform.system() in ('Darwin') or platform.machine() in ['arm', 'armv7l',- 'aarch64',- 'arm64',- 'ARM64']:- pytest.xfail(reason='126314, 132699: Build tokenizers for ARM and MacOS')self._test(*self.create_lookup_table_find_net(hash_table_type=hash_table_type,keys_shape=keys_shape, **params),ie_device, precision, ir_version, temp_dir=temp_dir,diff --git a/tests/layer_tests/tensorflow_tests/test_tf_RaggedTensorToSparse.py b/tests/layer_tests/tensorflow_tests/test_tf_RaggedTensorToSparse.pyindex 621b8430f64..f0832676f0f 100644--- a/tests/layer_tests/tensorflow_tests/test_tf_RaggedTensorToSparse.py+++ b/tests/layer_tests/tensorflow_tests/test_tf_RaggedTensorToSparse.py@@ -1,8 +1,6 @@# Copyright (C) 2022-2024 Intel Corporation# SPDX-License-Identifier: Apache-2.0-import platform-import numpy as npimport pytestimport tensorflow as tf@@ -55,10 +53,6 @@ class TestRaggedTensorToSparse(CommonTFLayerTest):])@pytest.mark.precommit@pytest.mark.nightly- @pytest.mark.xfail(condition=platform.system() in ('Darwin', 'Linux') and platform.machine() in ['arm', 'armv7l',- 'aarch64',- 'arm64', 'ARM64'],- reason='126314, 132699: Build tokenizers for ARM and MacOS')def test_ragged_tensor_to_sparse(self, rt_dense_values_shape, rt_dense_values_type, rt_nested_splits,ie_device, precision, ir_version, temp_dir, use_legacy_frontend):if ie_device == 'GPU' or run_in_jenkins():diff --git a/tests/layer_tests/tensorflow_tests/test_tf_RaggedTensorToTensor.py b/tests/layer_tests/tensorflow_tests/test_tf_RaggedTensorToTensor.pyindex 39afde0a2c6..0267874eb98 100644--- a/tests/layer_tests/tensorflow_tests/test_tf_RaggedTensorToTensor.py+++ b/tests/layer_tests/tensorflow_tests/test_tf_RaggedTensorToTensor.py@@ -1,8 +1,6 @@# Copyright (C) 2022-2024 Intel Corporation# SPDX-License-Identifier: Apache-2.0-import platform-import numpy as npimport pytestimport tensorflow as tf@@ -52,10 +50,6 @@ class TestRaggedTensorToTensor(CommonTFLayerTest):@pytest.mark.parametrize('row_partition_types', [["ROW_SPLITS"]])@pytest.mark.precommit@pytest.mark.nightly- @pytest.mark.xfail(condition=platform.system() in ('Darwin', 'Linux') and platform.machine() in ['arm', 'armv7l',- 'aarch64',- 'arm64', 'ARM64'],- reason='126314, 132699: Build tokenizers for ARM and MacOS')def test_ragged_tensor_to_tensor(self, shape_type, shape_value, values_shape, values_type, default_value,row_partition_tensors, row_partition_types,ie_device, precision, ir_version, temp_dir, use_legacy_frontend):@@ -110,10 +104,6 @@ class TestRaggedTensorToTensorRowIds(CommonTFLayerTest):@pytest.mark.parametrize('row_partition_types', [["FIRST_DIM_SIZE", "VALUE_ROWIDS"]])@pytest.mark.precommit@pytest.mark.nightly- @pytest.mark.xfail(condition=platform.system() in ('Darwin', 'Linux') and platform.machine() in ['arm', 'armv7l',- 'aarch64',- 'arm64', 'ARM64'],- reason='126314, 132699: Build tokenizers for ARM and MacOS')def test_ragged_tensor_to_tensor(self, shape_type, shape_value, values_shape, values_type, default_value,row_partition_tensors, row_partition_types,ie_device, precision, ir_version, temp_dir, use_legacy_frontend):diff --git a/tests/layer_tests/tensorflow_tests/test_tf_StaticRegexReplace.py b/tests/layer_tests/tensorflow_tests/test_tf_StaticRegexReplace.pyindex ef5e135537e..a3fa91ad097 100644--- a/tests/layer_tests/tensorflow_tests/test_tf_StaticRegexReplace.py+++ b/tests/layer_tests/tensorflow_tests/test_tf_StaticRegexReplace.py@@ -1,8 +1,6 @@# Copyright (C) 2018-2024 Intel Corporation# SPDX-License-Identifier: Apache-2.0-import platform-import numpy as npimport pytestimport tensorflow as tf@@ -41,10 +39,6 @@ class TestStaticRegexReplace(CommonTFLayerTest):@pytest.mark.parametrize('replace_global', [None, True, False])@pytest.mark.precommit@pytest.mark.nightly- @pytest.mark.xfail(condition=platform.system() in ('Darwin', 'Linux') and platform.machine() in ['arm', 'armv7l',- 'aarch64',- 'arm64', 'ARM64'],- reason='Ticket - 126314, 132699')def test_static_regex_replace(self, input_shape, pattern, rewrite, replace_global,ie_device, precision, ir_version, temp_dir,use_legacy_frontend):diff --git a/tests/layer_tests/tensorflow_tests/test_tf_StringLower.py b/tests/layer_tests/tensorflow_tests/test_tf_StringLower.pyindex f4c9e7260d7..5787c0b8318 100644--- a/tests/layer_tests/tensorflow_tests/test_tf_StringLower.py+++ b/tests/layer_tests/tensorflow_tests/test_tf_StringLower.py@@ -3,7 +3,6 @@import numpy as npimport os-import platformimport pytestimport tensorflow as tffrom common.tf_layer_test_class import CommonTFLayerTest@@ -46,10 +45,6 @@ class TestStringLower(CommonTFLayerTest):['第一句話在這裡', '第二句話在這裡', '第三句話在這裡']])@pytest.mark.precommit@pytest.mark.nightly- @pytest.mark.xfail(condition=platform.system() in ('Darwin', 'Linux') and platform.machine() in ['arm', 'armv7l',- 'aarch64',- 'arm64', 'ARM64'],- reason='Ticket - 126314, 132699')def test_string_lower(self, input_shape, encoding, strings_dictionary, ie_device, precision, ir_version, temp_dir,use_legacy_frontend):if ie_device == 'GPU' or run_in_jenkins():@@ -78,10 +73,6 @@ class TestStringLowerOVC:@pytest.mark.precommit@pytest.mark.nightly- @pytest.mark.xfail(condition=platform.system() in ('Darwin', 'Linux') and platform.machine() in ['arm', 'armv7l',- 'aarch64',- 'arm64', 'ARM64'],- reason='Ticket - 126314, 132699')def test_string_lower_with_ovc(self, ie_device, temp_dir, precision):if ie_device == 'GPU' or run_in_jenkins():pytest.skip("operation extension is not supported on GPU")@@ -90,7 +81,6 @@ class TestStringLowerOVC:return_code, _, _ = generate_ir_ovc(input_model_path, {'output_model': output_model_path})assert return_code == 0, "OVC tool is failed for conversion model {}".format(input_model_path)- import openvino_tokenizersimport openvino as ovcore = ov.Core()compiled_model = core.compile_model(output_model_path, ie_device)diff --git a/tests/layer_tests/tensorflow_tests/test_tf_StringSplitV2.py b/tests/layer_tests/tensorflow_tests/test_tf_StringSplitV2.pyindex 3745d07926b..84d7c269ce5 100644--- a/tests/layer_tests/tensorflow_tests/test_tf_StringSplitV2.py+++ b/tests/layer_tests/tensorflow_tests/test_tf_StringSplitV2.py@@ -1,8 +1,6 @@# Copyright (C) 2018-2024 Intel Corporation# SPDX-License-Identifier: Apache-2.0-import platform-import numpy as npimport pytestimport tensorflow as tf@@ -42,10 +40,6 @@ class TestStringSplitV2(CommonTFLayerTest):@pytest.mark.parametrize('maxsplit', [None, -1, 5, 10])@pytest.mark.precommit@pytest.mark.nightly- @pytest.mark.xfail(condition=platform.system() in ('Darwin', 'Linux') and platform.machine() in ['arm', 'armv7l',- 'aarch64',- 'arm64', 'ARM64'],- reason='126314, 132699: Build tokenizers for ARM and MacOS')def test_string_split_v2(self, input_shape, sep, maxsplit,ie_device, precision, ir_version, temp_dir,use_legacy_frontend):diff --git a/tests/layer_tests/tensorflow_tests/test_tf_StringToHashBucketFast.py b/tests/layer_tests/tensorflow_tests/test_tf_StringToHashBucketFast.pyindex 08812fe7b46..5fefb8117f3 100644--- a/tests/layer_tests/tensorflow_tests/test_tf_StringToHashBucketFast.py+++ b/tests/layer_tests/tensorflow_tests/test_tf_StringToHashBucketFast.py@@ -1,8 +1,6 @@# Copyright (C) 2018-2024 Intel Corporation# SPDX-License-Identifier: Apache-2.0-import platform-import numpy as npimport pytestimport tensorflow as tf@@ -45,10 +43,6 @@ class TestStringToHashBucketFast(CommonTFLayerTest):['', ' ', '12345 ']])@pytest.mark.precommit@pytest.mark.nightly- @pytest.mark.xfail(condition=platform.system() in ('Darwin', 'Linux') and platform.machine() in ['arm', 'armv7l',- 'aarch64',- 'arm64', 'ARM64'],- reason='Ticket - 126314, 132699')def test_string_to_hash_bucket_fast(self, input_shape, num_buckets, strings_dictionary, ie_device, precision,ir_version, temp_dir,use_legacy_frontend):