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] Enable TF models testing on ARM64 architecture (#33932)
Arseniy Obolenskiy3083401dd4de
diff --git a/.github/workflows/linux_arm64.yml b/.github/workflows/linux_arm64.ymlindex 49c7200f007..52b4d299ae1 100644--- a/.github/workflows/linux_arm64.yml+++ b/.github/workflows/linux_arm64.yml@@ -258,9 +258,8 @@ jobs:TensorFlow_Models_Tests:name: TensorFlow Models tests- if: ${{ 'false' }} # TODO: Enable once the dependencies are ready for arm (no tensorflow-text available for arm from PyPI)- # if: fromJSON(needs.smart_ci.outputs.affected_components).TF_FE.test ||- # fromJSON(needs.smart_ci.outputs.affected_components).TFL_FE.test+ if: fromJSON(needs.smart_ci.outputs.affected_components).TF_FE.test ||+ fromJSON(needs.smart_ci.outputs.affected_components).TFL_FE.testneeds: [ Build, Docker, Smart_CI, Openvino_tokenizers]uses: ./.github/workflows/job_tensorflow_models_tests.ymlwith:diff --git a/tests/model_hub_tests/tensorflow/test_tf_convert_model.py b/tests/model_hub_tests/tensorflow/test_tf_convert_model.pyindex 7fab4b8b73a..487e5db2ee5 100644--- a/tests/model_hub_tests/tensorflow/test_tf_convert_model.py+++ b/tests/model_hub_tests/tensorflow/test_tf_convert_model.py@@ -3,6 +3,7 @@import gcimport os+import platformimport pytestimport shutilimport subprocess@@ -160,6 +161,27 @@ class TestTFHubConvertModel(TestConvertModel):def test_convert_model_precommit(self, model_name, model_link, mark, reason, ie_device):assert mark is None or mark == 'skip' or mark == 'xfail', \"Incorrect test case: {}, {}".format(model_name, model_link)++ arm_platforms = {'arm', 'armv7l', 'aarch64', 'arm64', 'ARM64'}+ arm_failed_models = {+ 'movenet/singlepose/lightning',+ 'imagenet/mobilenet_v2_100_224/feature_vector',+ 'movenet/multipose/lightning',+ 'imagenet/mobilenet_v1_100_224/classification',+ 'magenta/arbitrary-image-stylization-v1-256',+ 'small_bert/bert_en_uncased_L-4_H-256_A-4',+ 'movinet/a5/base/kinetics-600/classification',+ 'efficientdet/lite0/detection',+ 'film',+ 'i3d-rgb',+ 'microsoft/deberta-v3-small',+ 'facebook/convnext-tiny-224',+ 'google/vit-base-patch16-224',+ 'facebook/sam-vit-base',+ }+ if platform.machine() in arm_platforms and model_name in arm_failed_models:+ pytest.skip(f"Model {model_name} is not enabled on ARM platform")+if mark == 'skip':pytest.skip(reason)elif mark == 'xfail':diff --git a/tests/model_hub_tests/tensorflow/test_tf_hub_api_notebooks.py b/tests/model_hub_tests/tensorflow/test_tf_hub_api_notebooks.pyindex abc094b1399..75b977c2036 100644--- a/tests/model_hub_tests/tensorflow/test_tf_hub_api_notebooks.py+++ b/tests/model_hub_tests/tensorflow/test_tf_hub_api_notebooks.py@@ -1,6 +1,8 @@# Copyright (C) 2018-2026 Intel Corporation# SPDX-License-Identifier: Apache-2.0+import platform+import pytestimport tensorflow as tfimport tensorflow_hub as hub@@ -73,4 +75,9 @@ class TestTFHubApiNotebooks(TestConvertModel):@pytest.mark.precommit@pytest.mark.parametrize("model_name", ['mobilenet_v2_100_224_dict', 'mobilenet_v2_100_224_list', 'film'])def test_tf_hub_api_notebook1(self, model_name, ie_device):++ arm_platforms = {'arm', 'armv7l', 'aarch64', 'arm64', 'ARM64'}+ if platform.machine() in arm_platforms and model_name == 'film':+ pytest.skip(f"Model {model_name} is not enabled on ARM platform")+self.run(model_name, '', ie_device)diff --git a/tests/model_hub_tests/tensorflow/test_tf_read_model.py b/tests/model_hub_tests/tensorflow/test_tf_read_model.pyindex 0149181d8fd..0bca7ffb327 100644--- a/tests/model_hub_tests/tensorflow/test_tf_read_model.py+++ b/tests/model_hub_tests/tensorflow/test_tf_read_model.py@@ -3,6 +3,7 @@import gcimport os+import platformimport shutilimport pytest@@ -135,6 +136,15 @@ class TestTFReadModel(TestConvertModel):def test_read_model_precommit(self, model_name, model_link, mark, reason, ie_device):assert mark is None or mark == 'skip' or mark == 'xfail', \"Incorrect test case: {}, {}".format(model_name, model_link)++ arm_platforms = {'arm', 'armv7l', 'aarch64', 'arm64', 'ARM64'}+ arm_failed_models = {+ 'movenet/singlepose/lightning',+ 'efficientdet/lite0/detection',+ }+ if platform.machine() in arm_platforms and model_name in arm_failed_models:+ pytest.skip(f"Model {model_name} is not enabled on ARM platform")+if mark == 'skip':pytest.skip(reason)elif mark == 'xfail':