File tree 3 files changed +18
-0
lines changed
.azure-pipelines/scripts/ut/3x
3 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,12 @@ python -c "import neural_compressor as nc"
3
3
test_case=" run 3x Torch"
4
4
echo " ${test_case} "
5
5
6
+ echo " ##[section]Run import check"
7
+ set -e
8
+ python -c " import neural_compressor.torch"
9
+ python -c " import neural_compressor.common"
10
+ echo " ##[section]import check pass"
11
+
6
12
# install requirements
7
13
echo " ##[group]set up UT env..."
8
14
export LD_LIBRARY_PATH=/usr/local/lib/:$LD_LIBRARY_PATH
Original file line number Diff line number Diff line change @@ -3,6 +3,12 @@ python -c "import neural_compressor as nc"
3
3
test_case=" run 3x Torch Habana FP8"
4
4
echo " ${test_case} "
5
5
6
+ echo " ##[section]Run import check"
7
+ set -e
8
+ python -c " import neural_compressor.torch"
9
+ python -c " import neural_compressor.common"
10
+ echo " ##[section]import check pass"
11
+
6
12
# install requirements
7
13
echo " ##[group]set up UT env..."
8
14
export LD_LIBRARY_PATH=/usr/local/lib/:$LD_LIBRARY_PATH
Original file line number Diff line number Diff line change @@ -3,6 +3,12 @@ python -c "import neural_compressor as nc"
3
3
test_case=" run 3x TensorFlow"
4
4
echo " ${test_case} "
5
5
6
+ echo " ##[section]Run import check"
7
+ set -e
8
+ python -c " import neural_compressor.tensorflow"
9
+ python -c " import neural_compressor.common"
10
+ echo " ##[section]import check pass"
11
+
6
12
# install requirements
7
13
echo " ##[group]set up UT env..."
8
14
pip install -r /neural-compressor/test/3x/tensorflow/requirements.txt
You can’t perform that action at this time.
0 commit comments