-
Notifications
You must be signed in to change notification settings - Fork 227
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1,808 changed files
with
547,261 additions
and
78,364 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
.git/ | ||
|
||
build | ||
dist | ||
*.egg-info | ||
*.egg/ | ||
*.pyc | ||
*.swp | ||
|
||
.tox | ||
.coverage | ||
__pycache__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
*.png filter=lfs diff=lfs merge=lfs -text | ||
*.jpg filter=lfs diff=lfs merge=lfs -text | ||
*.pb filter=lfs diff=lfs merge=lfs -text | ||
*.onnx filter=lfs diff=lfs merge=lfs -text | ||
|
||
* text=auto eol=lf | ||
*.{tfrecord,h5} binary |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<!-- Before creating an issue or a discussion topic, check the FAQ at https://github.com/openvinotoolkit/nncf/tree/develop/docs/FAQ.md --> | ||
<!-- If you have a question on how NNCF works or how to apply it to your model, *do not create an issue* - create a discussion at https://github.com/openvinotoolkit/nncf/discussions instead. --> | ||
<!-- Only create an issue for genuine problems with NNCF itself. Provide all necessary info, files and logs for us to be able to reproduce and analyze the issue. --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Config schema HTML build | ||
on: | ||
push: | ||
branches: | ||
- develop | ||
- test_for_doc_build_trigger | ||
paths: | ||
- nncf/config/** | ||
permissions: | ||
contents: write | ||
jobs: | ||
build-and-deploy: | ||
concurrency: ci-${{ github.ref }} # Recommended if you intend to make multiple deployments in quick succession. | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install and Build # This example project is built using npm and outputs the result to the 'build' folder. Replace with the commands required to build your project, or remove this step entirely if your site is pre-built. | ||
run: | | ||
pip install json-schema-for-humans | ||
pip install -e . | ||
python -c 'import jstyleson; from nncf.config import NNCFConfig; jstyleson.dump(NNCFConfig.schema(), open("./schema.json", "w"), indent=2)' | ||
mkdir schema_html_build | ||
generate-schema-doc --deprecated-from-description schema.json schema_html_build/index.html | ||
- name: Deploy | ||
uses: JamesIves/github-pages-deploy-action@v4 | ||
with: | ||
folder: schema_html_build # The folder the action should deploy. | ||
token: ${{ secrets.PUSH_TO_GH_PAGES_BRANCH }} | ||
branch: doc_pages |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,128 @@ | ||
PYLINT_VERSION := 2.13.9 | ||
JUNITXML_PATH ?= nncf-tests.xml | ||
|
||
ifdef DATA | ||
DATA_ARG := --data $(DATA) | ||
endif | ||
|
||
############################################################################### | ||
# ONNX backend | ||
install-onnx-test: | ||
pip install -U pip | ||
pip install -e .[onnx] | ||
pip install -r tests/onnx/requirements.txt | ||
pip install -r tests/cross_fw/install/requirements.txt | ||
pip install -r tests/onnx/benchmarking/requirements.txt | ||
pip install -r examples/post_training_quantization/onnx/mobilenet_v2/requirements.txt | ||
|
||
install-onnx-dev: install-onnx-test | ||
pip install pylint==$(PYLINT_VERSION) | ||
|
||
test-onnx: | ||
pytest tests/onnx --junitxml ${JUNITXML_PATH} | ||
|
||
ONNX_PYFILES := $(shell find examples/post_training_quantization/onnx -type f -name "*.py") | ||
pylint-onnx: | ||
pylint --rcfile .pylintrc \ | ||
nncf/onnx \ | ||
nncf/quantization \ | ||
tests/onnx \ | ||
$(ONNX_PYFILES) | ||
|
||
test-install-onnx: | ||
pytest tests/cross_fw/install/ -s \ | ||
--backend onnx \ | ||
--junitxml ${JUNITXML_PATH} | ||
|
||
############################################################################### | ||
# OpenVino backend | ||
install-openvino-test: | ||
pip install -U pip | ||
pip install -e .[openvino] | ||
pip install -r tests/openvino/requirements.txt | ||
pip install -r tests/cross_fw/install/requirements.txt | ||
pip install -r examples/experimental/openvino/bert/requirements.txt | ||
pip install -r examples/experimental/openvino/yolo_v5/requirements.txt | ||
|
||
install-openvino-dev: install-openvino-test | ||
pip install pylint==$(PYLINT_VERSION) | ||
|
||
test-openvino: | ||
pytest tests/openvino --junitxml ${JUNITXML_PATH} | ||
|
||
pylint-openvino: | ||
pylint --rcfile .pylintrc \ | ||
nncf/openvino/ \ | ||
tests/openvino/ \ | ||
examples/experimental/openvino/ | ||
|
||
test-install-openvino: | ||
pytest tests/cross_fw/install -s \ | ||
--backend openvino \ | ||
--junitxml ${JUNITXML_PATH} | ||
|
||
############################################################################### | ||
# TensorFlow backend | ||
install-tensorflow-test: | ||
pip install -U pip | ||
pip install -e .[tf] | ||
pip install -r tests/tensorflow/requirements.txt | ||
pip install -r tests/cross_fw/install/requirements.txt | ||
pip install -r examples/tensorflow/requirements.txt | ||
|
||
install-tensorflow-dev: install-tensorflow-test | ||
pip install pylint==$(PYLINT_VERSION) | ||
|
||
test-tensorflow: | ||
pytest tests/common tests/tensorflow \ | ||
--junitxml ${JUNITXML_PATH} \ | ||
$(DATA_ARG) | ||
|
||
pylint-tensorflow: | ||
pylint --rcfile .pylintrc \ | ||
nncf/tensorflow \ | ||
nncf/experimental/tensorflow \ | ||
tests/tensorflow \ | ||
tests/experimental/tensorflow \ | ||
examples/tensorflow | ||
|
||
test-install-tensorflow: | ||
pytest tests/cross_fw/install/ -s --backend tf --junitxml ${JUNITXML_PATH} | ||
|
||
############################################################################### | ||
# PyTorch backend | ||
install-torch-test: | ||
pip install -U pip | ||
pip install -e .[torch] | ||
pip install -r tests/torch/requirements.txt | ||
pip install -r tests/cross_fw/install/requirements.txt | ||
pip install -r examples/torch/requirements.txt | ||
|
||
install-torch-dev: install-torch-test | ||
pip install pylint==$(PYLINT_VERSION) | ||
|
||
test-torch: | ||
pytest tests/common tests/torch --junitxml ${JUNITXML_PATH} $(DATA_ARG) | ||
|
||
pylint-torch: | ||
pylint --rcfile .pylintrc \ | ||
nncf/common \ | ||
nncf/config \ | ||
nncf/api \ | ||
nncf/torch \ | ||
nncf/experimental/torch \ | ||
tests/common \ | ||
tests/torch \ | ||
examples/torch \ | ||
examples/experimental/torch | ||
|
||
test-install-torch-cpu: | ||
pytest tests/cross_fw/install/ -s \ | ||
--backend torch \ | ||
--host-configuration cpu \ | ||
--junitxml ${JUNITXML_PATH} | ||
|
||
test-install-torch-gpu: | ||
pytest tests/cross_fw/install -s \ | ||
--backend torch \ | ||
--junitxml ${JUNITXML_PATH} |
Oops, something went wrong.