Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TF FE] Support TensorFlow 2.16 #23562

Merged
merged 3 commits into from
Mar 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -18,7 +18,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 @@ -12,7 +12,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
Loading