Browse Source

!8031 [MSLITE]add effcinent smoke

Merge pull request !8031 from ghzl/keams-and-efficicnet
tags/v1.1.0
mindspore-ci-bot Gitee 5 years ago
parent
commit
73f1d524b1
2 changed files with 19 additions and 1 deletions
  1. +1
    -1
      mindspore/lite/test/models_mindspore_weightquant.cfg
  2. +18
    -0
      mindspore/lite/test/run_benchmark_nets.sh

+ 1
- 1
mindspore/lite/test/models_mindspore_weightquant.cfg View File

@@ -1,3 +1,3 @@
retinaface.mindir retinaface.mindir
mobilefacenet.mindir mobilefacenet.mindir
#efficientnet.mindir
efficientnet.mindir

+ 18
- 0
mindspore/lite/test/run_benchmark_nets.sh View File

@@ -789,6 +789,24 @@ function Run_arm64() {
run_result='arm64: '${model_name}'_train failed'; echo ${run_result} >> ${run_benchmark_result_file}; return 1 run_result='arm64: '${model_name}'_train failed'; echo ${run_result} >> ${run_benchmark_result_file}; return 1
fi fi
done < ${models_mindspore_train_config} done < ${models_mindspore_train_config}

# Run mindir weightquant converted train models:
while read line; do
model_name=${line}
if [[ $model_name == \#* ]]; then
continue
fi
echo ${model_name}'_train' >> "${run_arm64_log_file}"
echo 'cd /data/local/tmp/benchmark_test' > adb_run_cmd.txt
echo 'export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/data/local/tmp/benchmark_test;./benchmark --modelFile='${model_name}'_weightquant.ms --inDataFile=/data/local/tmp/input_output/input/'${model_name}'.ms.bin --benchmarkDataFile=/data/local/tmp/input_output/output/'${model_name}'.weightquant.ms.out --loopCount=1' >> "${run_arm64_log_file}"
echo 'export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/data/local/tmp/benchmark_test;./benchmark --modelFile='${model_name}'_weightquant.ms --inDataFile=/data/local/tmp/input_output/input/'${model_name}'.ms.bin --benchmarkDataFile=/data/local/tmp/input_output/output/'${model_name}'.weightquant.ms.out --loopCount=1' >> adb_run_cmd.txt
adb -s ${device_id} shell < adb_run_cmd.txt >> "${run_arm64_log_file}"
if [ $? = 0 ]; then
run_result='arm64: '${model_name}'_train pass'; echo ${run_result} >> ${run_benchmark_result_file}
else
run_result='arm64: '${model_name}'_train failed'; echo ${run_result} >> ${run_benchmark_result_file}; return 1
fi
done < ${models_mindspore_weightquant_config}
} }


# Run on arm32 platform: # Run on arm32 platform:


Loading…
Cancel
Save