From e5ecbf4c8cc3a977d32e5af7ce990460e01f2128 Mon Sep 17 00:00:00 2001 From: zengxianglong Date: Fri, 30 Oct 2020 17:28:17 +0800 Subject: [PATCH] add models of which procedure is ok --- .../lite/test/models_only_for_process.cfg | 20 +++++++++++++++++++ mindspore/lite/test/run_benchmark_nets.sh | 4 ++-- 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/mindspore/lite/test/models_only_for_process.cfg b/mindspore/lite/test/models_only_for_process.cfg index e69de29bb2..8ec61521f8 100644 --- a/mindspore/lite/test/models_only_for_process.cfg +++ b/mindspore/lite/test/models_only_for_process.cfg @@ -0,0 +1,20 @@ +lite-model_arbitrary-image-stylization-inceptionv3_dr_transfer_1.tflite +lite-model_arbitrary-image-stylization-inceptionv3_int8_transfer_1.tflite +lite-model_arbitrary-image-stylization-inceptionv3-dynamic-shapes_dr_transfer_1.tflite +lite-model_cartoongan_dr_1.tflite +lite-model_deeplabv3-mobilenetv2_1_default_1.tflite +lite-model_deeplabv3-mobilenetv2_dm05_1_default_1.tflite +lite-model_deeplabv3-mobilenetv2-int8_1_default_1.tflite +lite-model_deeplabv3-mobilenetv2-ade20k_1_default_1.tflite +lite-model_deeplabv3-mobilenetv2_dm05-int8_1_default_1.tflite +lite-model_deeplabv3-mobilenetv3-cityscapes_1_default_1.tflite +lite-model_east-text-detector_dr_1.tflite +magenta_arbitrary-image-stylization-v1-256_fp16_transfer_1.tflite +magenta_arbitrary-image-stylization-v1-256_int8_transfer_1.tflite +magenta_arbitrary-image-stylization-v1-256_int8_prediction_1.tflite +gts_model_quant_frozen.tflite +candy-9.onnx +mosaic-9.onnx +pointilism-9.onnx +rain-princess-9.onnx +udnie-9.onnx diff --git a/mindspore/lite/test/run_benchmark_nets.sh b/mindspore/lite/test/run_benchmark_nets.sh index 3f093b4c69..19a0c01b2e 100644 --- a/mindspore/lite/test/run_benchmark_nets.sh +++ b/mindspore/lite/test/run_benchmark_nets.sh @@ -421,8 +421,8 @@ function Run_x86() { echo ${model_name} >> "${run_x86_log_file}" echo 'cd '${x86_path}'/mindspore-lite-'${version}'-runtime-x86-'${process_unit_x86} >> "{run_x86_log_file}" cd ${x86_path}/mindspore-lite-${version}-runtime-x86-${process_unit_x86} || return 1 - echo 'export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:./lib:./third_party/libjpeg-turbo/lib:./third_party/opencv/lib;./benchmark/benchmark --modelFile='${ms_models_path}'/'${model_name}'.ms' >> "${run_x86_log_file}" - export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:./lib:./third_party/libjpeg-turbo/lib:./third_party/opencv/lib;./benchmark/benchmark --modelFile=${ms_models_path}/${model_name}.ms >> "${run_x86_log_file}" + echo 'export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:./lib:./third_party/libjpeg-turbo/lib:./third_party/opencv/lib;./benchmark/benchmark --modelFile='${ms_models_path}'/'${model_name}'.ms --loopCount=1 --warmUpLoopCount=0' >> "${run_x86_log_file}" + export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:./lib:./third_party/libjpeg-turbo/lib:./third_party/opencv/lib;./benchmark/benchmark --modelFile=${ms_models_path}/${model_name}.ms --loopCount=1 --warmUpLoopCount=0 >> "${run_x86_log_file}" if [ $? = 0 ]; then run_result='x86: '${model_name}' pass'; echo ${run_result} >> ${run_benchmark_result_file} else