Skip to content
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
2 changes: 1 addition & 1 deletion .azure-pipelines/model-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ parameters:
- ssd_mobilenet_v1_ckpt
# - ssd_resnet50_v1_ckpt
- inception_v1
- resnet50_fashion
# - resnet50_fashion
- darknet19
- densenet-121
- resnet-101
Expand Down
11 changes: 6 additions & 5 deletions .azure-pipelines/scripts/ut/run_basic_adaptor.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/bin/bash
set -x
python -c "import neural_compressor as nc;print(nc.version.__version__)"
echo "run basic adaptor"

Expand All @@ -23,11 +22,13 @@ ut_log_name=${LOG_DIR}/ut_tf_${tensorflow_version}_pt_${pytorch_version}.log

echo "cat run.sh..."
cat run.sh | tee ${ut_log_name}
echo "-------------"
echo "------UT start-------"
bash run.sh 2>&1 | tee -a ${ut_log_name}
cp .coverage ${LOG_DIR}/.coverage.adaptor
echo "list all in ${LOG_DIR}"
ls -a ${LOG_DIR}
echo "------UT end -------"

if [ $(grep -c "FAILED" ${ut_log_name}) != 0 ] || [ $(grep -c "OK" ${ut_log_name}) == 0 ];then
echo "Find errors in UT test, please check the output..."
exit 1
fi
fi
echo "UT finished successfully! "
11 changes: 6 additions & 5 deletions .azure-pipelines/scripts/ut/run_basic_adaptor_tfnewapi.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/bin/bash
set -x
python -c "import neural_compressor as nc;print(nc.version.__version__)"
echo "run basic adaptor tfnewapi"

Expand All @@ -19,11 +18,13 @@ ut_log_name=${LOG_DIR}/ut_tf_newapi.log

echo "cat run.sh..."
cat run.sh | tee ${ut_log_name}
echo "-------------"
echo "------UT start-------"
bash run.sh 2>&1 | tee -a ${ut_log_name}
cp .coverage ${LOG_DIR}/.coverage.tfnewapi
echo "list all in ${LOG_DIR}"
ls -a ${LOG_DIR}
echo "------UT end -------"

if [ $(grep -c "FAILED" ${ut_log_name}) != 0 ] || [ $(grep -c "OK" ${ut_log_name}) == 0 ];then
echo "Find errors in UT test, please check the output..."
exit 1
fi
fi
echo "UT finished successfully! "
11 changes: 6 additions & 5 deletions .azure-pipelines/scripts/ut/run_basic_ipex.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/bin/bash
set -x
python -c "import neural_compressor as nc;print(nc.version.__version__)"
echo "run basic ipex"

Expand All @@ -20,11 +19,13 @@ ut_log_name=${LOG_DIR}/ut_ipex.log

echo "cat run.sh..."
cat run.sh | tee ${ut_log_name}
echo "-------------"
echo "------UT start-------"
bash run.sh 2>&1 | tee -a ${ut_log_name}
cp .coverage ${LOG_DIR}/.coverage.ipex
echo "list all in ${LOG_DIR}"
ls -a ${LOG_DIR}
echo "------UT end -------"

if [ $(grep -c "FAILED" ${ut_log_name}) != 0 ] || [ $(grep -c "OK" ${ut_log_name}) == 0 ];then
echo "Find errors in UT test, please check the output..."
exit 1
fi
fi
echo "UT finished successfully! "
11 changes: 6 additions & 5 deletions .azure-pipelines/scripts/ut/run_basic_itex.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/bin/bash
set -x
python -c "import neural_compressor as nc;print(nc.version.__version__)"
echo "run basic itex"

Expand All @@ -19,11 +18,13 @@ ut_log_name=${LOG_DIR}/ut_itex.log

echo "cat run.sh..."
cat run.sh | tee ${ut_log_name}
echo "-------------"
echo "------UT start-------"
bash run.sh 2>&1 | tee -a ${ut_log_name}
cp .coverage ${LOG_DIR}/.coverage.itex
echo "list all in ${LOG_DIR}"
ls -a ${LOG_DIR}
echo "------UT end -------"

if [ $(grep -c "FAILED" ${ut_log_name}) != 0 ] || [ $(grep -c "OK" ${ut_log_name}) == 0 ];then
echo "Find errors in UT test, please check the output..."
exit 1
fi
fi
echo "UT finished successfully! "
11 changes: 6 additions & 5 deletions .azure-pipelines/scripts/ut/run_basic_others.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/bin/bash
set -x
python -c "import neural_compressor as nc;print(nc.version.__version__)"
echo "run basic others"

Expand Down Expand Up @@ -29,11 +28,13 @@ ut_log_name=${LOG_DIR}/ut_tf_${tensorflow_version}_pt_${pytorch_version}.log

echo "cat run.sh..."
cat run.sh | tee ${ut_log_name}
echo "-------------"
echo "------UT start-------"
bash run.sh 2>&1 | tee -a ${ut_log_name}
cp .coverage ${LOG_DIR}/.coverage.others
echo "list all in ${LOG_DIR}"
ls -a ${LOG_DIR}
echo "------UT end -------"

if [ $(grep -c "FAILED" ${ut_log_name}) != 0 ] || [ $(grep -c "OK" ${ut_log_name}) == 0 ];then
echo "Find errors in UT test, please check the output..."
exit 1
fi
fi
echo "UT finished successfully! "
8 changes: 5 additions & 3 deletions .azure-pipelines/scripts/ut/run_ncoder.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/bin/bash
set -x
python -c "import neural_compressor as nc;print(nc.version.__version__)"
echo "run coder"

Expand All @@ -15,9 +14,12 @@ ut_log_name=${LOG_DIR}/ut_neural_coder.log

echo "cat run.sh..."
cat run.sh | tee ${ut_log_name}
echo "-------------"
echo "------UT start-------"
bash run.sh 2>&1 | tee -a ${ut_log_name}
echo "------UT end -------"

if [ $(grep -c "FAILED" ${ut_log_name}) != 0 ] || [ $(grep -c "OK" ${ut_log_name}) == 0 ];then
echo "Find errors in UT test, please check the output..."
exit 1
fi
fi
echo "UT finished successfully! "
8 changes: 5 additions & 3 deletions .azure-pipelines/scripts/ut/run_ux.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/bin/bash
set -x
python -c "import neural_compressor as nc;print(nc.version.__version__)"
echo "run ux"

Expand All @@ -21,9 +20,12 @@ ut_log_name=${LOG_DIR}/ut_tf_${tensorflow_version}_pt_${pytorch_version}.log

echo "cat run.sh..."
cat run.sh | tee ${ut_log_name}
echo "-------------"
echo "------UT start-------"
bash run.sh 2>&1 | tee -a ${ut_log_name}
echo "------UT end -------"

if [ $(grep -c "FAILED" ${ut_log_name}) != 0 ] || [ $(grep -c "OK" ${ut_log_name}) == 0 ];then
echo "Find errors in UT test, please check the output..."
exit 1
fi
fi
echo "UT finished successfully! "