-
Notifications
You must be signed in to change notification settings - Fork 258
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
945 changed files
with
4,926 additions
and
147,415 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
4 changes: 0 additions & 4 deletions
4
.azure-pipelines/scripts/codeScan/pydocstyle/scan_path_neural_insights.txt
This file was deleted.
Oops, something went wrong.
4 changes: 0 additions & 4 deletions
4
.azure-pipelines/scripts/codeScan/pydocstyle/scan_path_neural_solution.txt
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
14 changes: 7 additions & 7 deletions
14
.azure-pipelines/scripts/ut/3x/run_3x_ort.sh → ...-pipelines/scripts/ut/3x/run_3x_pt_fp8.sh
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,25 +1,25 @@ | ||
#!/bin/bash | ||
python -c "import neural_compressor as nc" | ||
test_case="run 3x ONNXRT" | ||
test_case="run 3x Torch Habana FP8" | ||
echo "${test_case}" | ||
|
||
# install requirements | ||
echo "set up UT env..." | ||
pip install -r /neural-compressor/test/3x/onnxrt/requirements.txt | ||
sed -i '/^intel_extension_for_pytorch/d' /neural-compressor/test/3x/torch/requirements.txt | ||
pip install -r /neural-compressor/test/3x/torch/requirements.txt | ||
pip install git+https://github.com/HabanaAI/[email protected] | ||
pip install pytest-cov | ||
pip install pytest-html | ||
pip list | ||
|
||
export COVERAGE_RCFILE=/neural-compressor/.azure-pipelines/scripts/ut/3x/coverage.3x_ort | ||
export COVERAGE_RCFILE=/neural-compressor/.azure-pipelines/scripts/ut/3x/coverage.3x_pt_fp8 | ||
inc_path=$(python -c 'import neural_compressor; print(neural_compressor.__path__[0])') | ||
cd /neural-compressor/test/3x || exit 1 | ||
rm -rf torch | ||
rm -rf tensorflow | ||
|
||
LOG_DIR=/neural-compressor/log_dir | ||
mkdir -p ${LOG_DIR} | ||
ut_log_name=${LOG_DIR}/ut_3x_ort.log | ||
pytest --cov="${inc_path}" -vs --disable-warnings --html=report.html --self-contained-html . 2>&1 | tee -a ${ut_log_name} | ||
ut_log_name=${LOG_DIR}/ut_3x_pt_fp8.log | ||
pytest --cov="${inc_path}" -vs --disable-warnings --html=report.html --self-contained-html torch/algorithms/fp8_quant 2>&1 | tee -a ${ut_log_name} | ||
|
||
cp report.html ${LOG_DIR}/ | ||
|
||
|
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.