Skip to content

Commit

Permalink
[TF FE] Support TensorFlow 2.16 (openvinotoolkit#23562)
Browse files Browse the repository at this point in the history
**Details:** Support TensorFlow 2.16

**Ticket:** TBD

---------

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
  • Loading branch information
rkazants authored and alvoron committed Apr 29, 2024
1 parent 3c446b6 commit 2892a05
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 5 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/job_tensorflow_models_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,12 @@ jobs:
- name: TensorFlow Models Tests - TF FE
run: |
export PYTHONPATH=${MODEL_HUB_TESTS_INSTALL_DIR}:$PYTHONPATH
python3 -m pytest ${MODEL_HUB_TESTS_INSTALL_DIR}/tensorflow/ -m ${{ inputs.model_scope }} --html=${INSTALL_TEST_DIR}/TEST-tf_fe_models_${{ inputs.model_scope }}.html --self-contained-html -v
python3 -m pytest ${MODEL_HUB_TESTS_INSTALL_DIR}/tensorflow/test_tf_convert_model.py -m ${{ inputs.model_scope }} \
--html=${INSTALL_TEST_DIR}/TEST-tf_fe_models_${{ inputs.model_scope }}.html --self-contained-html -v
# decouple notebook tests due to GitHub issue in tensorflow_hub https://github.com/tensorflow/hub/issues/903
# and use WA to switch to (legacy) Keras 2
TF_USE_LEGACY_KERAS=1 python3 -m pytest ${MODEL_HUB_TESTS_INSTALL_DIR}/tensorflow/test_tf_hub_api_notebooks.py -m ${{ inputs.model_scope }} \
--html=${INSTALL_TEST_DIR}/TEST-tf_fe_models_notebooks_${{ inputs.model_scope }}.html --self-contained-html -v
env:
TEST_DEVICE: CPU

Expand Down
2 changes: 1 addition & 1 deletion src/bindings/python/constraints.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ patchelf<=0.17.2.1
# Frontends
docopt~=0.6.2
paddlepaddle==2.5.2
tensorflow>=1.15.5,<2.16.0
tensorflow>=1.15.5,<2.17.0
six~=1.16.0
protobuf>=3.18.1,<4.0.0
onnx==1.15.0
2 changes: 1 addition & 1 deletion tests/constraints.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ sympy>=1.10
wheel>=0.38.1
defusedxml>=0.7.1
fastjsonschema~=2.17.1
tensorflow>=2.5,<2.16.0
tensorflow>=2.5,<2.17.0
test-generator==0.1.2
requests>=2.25.1
opencv-python>=4.5
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import tensorflow as tf
import tensorflow_hub as hub
from models_hub_common.test_convert_model import TestConvertModel

from utils import get_input_info


Expand Down
2 changes: 1 addition & 1 deletion tools/mo/requirements_tf.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
-c ../constraints.txt
tensorflow>=1.15.5,<2.16.0
tensorflow>=1.15.5,<2.17.0
numpy>=1.16.6,<1.26
networkx
defusedxml
Expand Down
2 changes: 1 addition & 1 deletion tools/mo/requirements_tf2.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
-c ../constraints.txt
tensorflow>=2.5,<2.16.0
tensorflow>=2.5,<2.17.0
numpy>=1.16.6,<1.26
networkx
defusedxml
Expand Down

0 comments on commit 2892a05

Please sign in to comment.