Skip to content

Commit f1bb26b

Browse files
Remove TF backend (#3733)
### Changes Removed TF backend:
1 parent 3d7a35a commit f1bb26b

File tree

565 files changed

+110
-170588
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

565 files changed

+110
-170588
lines changed

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ body:
1717
Provide python environment using command:
1818
Attach the `requirements.txt` file that is generated by `pip freeze > requirements.txt`
1919
Manually:
20-
Provide the NNCF version and OpenVINO, Torch, TensorFlow, ONNX versions if applicable.
21-
20+
Provide the NNCF version and OpenVINO, Torch, ONNX versions if applicable.
21+
2222
Additionally:
23-
OS Ubuntu 20.04.5 LTS
23+
OS Ubuntu 20.04.5 LTS
2424
Python 3.10.0
2525
Install git
2626
RAM 32.00 GB
@@ -33,7 +33,7 @@ body:
3333
attributes:
3434
label: Minimal Reproducible Example
3535
description: |
36-
How can we reproduce your issue?
36+
How can we reproduce your issue?
3737
3838
The minimal code snippet that is easy to understand and can be used to reproduce the issue is the best explanation of the issue!
3939
placeholder: |

.github/action_configs/labeler.yml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,6 @@ NNCF PT:
1717
- 'tests/torch/**/*!(.md)'
1818
- 'nncf/quantization/**/torch_backend.py'
1919

20-
NNCF TF:
21-
- any:
22-
- changed-files:
23-
- any-glob-to-any-file:
24-
- 'examples/tensorflow/**/*!(.md)'
25-
- 'examples/post_training_quantization/tensorflow/**/*!(.md)'
26-
- 'nncf/tensorflow/**/*!(.md)'
27-
- 'tests/tensorflow/**/*!(.md)'
28-
- 'nncf/quantization/**/tf_backend.py'
29-
3020
NNCF ONNX:
3121
- any:
3222
- changed-files:

.github/dependabot.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ updates:
3030
- dependency-name: "onnx"
3131
- dependency-name: "onnxruntime"
3232
- dependency-name: "openvino"
33-
- dependency-name: "tensorflow"
3433
- dependency-name: "torch"
3534
- dependency-name: "torchvision"
3635
# Tests

.github/workflows/call_precommit_windows.yml

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -127,35 +127,6 @@ jobs:
127127
env:
128128
NUM_WORKERS: 1 # Parallel tests are falls on build extenstion.
129129

130-
tensorflow:
131-
timeout-minutes: 40
132-
runs-on: windows-2025-8-core
133-
if: ${{ inputs.python_version != '3.12' }}
134-
defaults:
135-
run:
136-
shell: bash
137-
env:
138-
DEBIAN_FRONTEND: noninteractive
139-
steps:
140-
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
141-
with:
142-
lfs: true
143-
- uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0
144-
with:
145-
python-version: ${{ inputs.python_version }}
146-
- name: Override constraints
147-
if: ${{ inputs.override_requirements != '' }}
148-
run: python .github/scripts/override_constraints.py "${{ inputs.override_requirements }}"
149-
shell: bash
150-
- name: Install NNCF and test requirements
151-
run: pip install . -r tests/tensorflow/requirements.txt
152-
- name: Print installed modules
153-
run: pip list
154-
- name: Run TensorFlow precommit test scope
155-
run: make test-tensorflow
156-
env:
157-
NUM_WORKERS: 6
158-
159130
pytorch2-cpu:
160131
timeout-minutes: 40
161132
runs-on: windows-2025-8-core

.github/workflows/install.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
strategy:
1818
fail-fast: false
1919
matrix:
20-
backend: ["torch", "tf", "onnx", "openvino"]
20+
backend: ["torch", "onnx", "openvino"]
2121
runner: ["windows-latest", "ubuntu-latest"]
2222
defaults:
2323
run:

.github/workflows/mypy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
python-version: 3.10.14
2525
- name: Install NNCF
2626
run: |
27-
pip install . torch tensorflow -c constraints.txt
27+
pip install . torch -c constraints.txt
2828
- name: Install mypy
2929
run: pip install mypy==1.8.0
3030
- name: Run mypy

.github/workflows/nightly.yml

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -23,29 +23,6 @@ jobs:
2323
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
2424
- uses: AlexanderDokuchaev/md-dead-link-check@d5a37e0b14e5918605d22b34562532762ccb2e47 # v1.2.0
2525

26-
tensorflow:
27-
runs-on: ubuntu-latest-8-cores
28-
if: github.repository_owner == 'openvinotoolkit'
29-
timeout-minutes: 100
30-
defaults:
31-
run:
32-
shell: bash
33-
env:
34-
DEBIAN_FRONTEND: noninteractive
35-
steps:
36-
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
37-
with:
38-
lfs: true
39-
- uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0
40-
with:
41-
python-version: 3.10.14
42-
- name: Install NNCF and test requirements
43-
run: pip install . -r tests/tensorflow/requirements.txt
44-
- name: Print installed modules
45-
run: pip list
46-
- name: Run TensorFlow precommit
47-
run: pytest tests/tensorflow -ra
48-
4926
weight-compression:
5027
if: github.repository_owner == 'openvinotoolkit'
5128
uses: ./.github/workflows/conformance_weight_compression.yml

Makefile

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -80,34 +80,6 @@ test-examples-openvino:
8080
--backend openvino \
8181
--junitxml ${JUNITXML_PATH}
8282

83-
###############################################################################
84-
# TensorFlow backend
85-
install-tensorflow-test:
86-
pip install -U pip
87-
pip install -e .
88-
pip install "git+https://github.com/openvinotoolkit/open_model_zoo.git@e7df86da686d2e1600282422e54f66c2fecea160#egg=accuracy_checker&subdirectory=tools/accuracy_checker"
89-
pip install -r tests/tensorflow/requirements.txt
90-
pip install -r tests/cross_fw/install/requirements.txt
91-
pip install -r tests/cross_fw/examples/requirements.txt
92-
93-
install-tensorflow-dev: install-tensorflow-test install-pre-commit
94-
pip install -r examples/post_training_quantization/tensorflow/mobilenet_v2/requirements.txt
95-
96-
test-tensorflow:
97-
pytest ${COVERAGE_ARGS} ${NUM_WORKERS_ARG} -ra tests/tensorflow -m "not nightly" \
98-
--junitxml ${JUNITXML_PATH} \
99-
$(DATA_ARG)
100-
101-
test-tensorflow-nightly:
102-
pytest ${COVERAGE_ARGS} tests/tensorflow -m 'nightly' \
103-
--junitxml ${JUNITXML_PATH} \
104-
$(DATA_ARG)
105-
106-
test-install-tensorflow:
107-
pytest tests/cross_fw/install -s --backend tf --junitxml ${JUNITXML_PATH}
108-
109-
test-examples-tensorflow:
110-
pytest tests/cross_fw/examples -s --backend tf --junitxml ${JUNITXML_PATH}
11183

11284
###############################################################################
11385
# PyTorch backend

0 commit comments

Comments
 (0)