Browse Source

4

tags/v1.2.0-rc1
yefeng 5 years ago
parent
commit
1fd021b181
4 changed files with 10 additions and 1 deletions
  1. +1
    -0
      mindspore/lite/src/runtime/kernel/arm/fp32/arithmetic_compare_fp32.cc
  2. +1
    -0
      mindspore/lite/test/models_tf.cfg
  3. +8
    -0
      mindspore/lite/test/run_benchmark_nets.sh
  4. +0
    -1
      mindspore/lite/tools/converter/legacy_optimizer/graph/switch_pass.cc

+ 1
- 0
mindspore/lite/src/runtime/kernel/arm/fp32/arithmetic_compare_fp32.cc View File

@@ -109,6 +109,7 @@ int ArithmeticCompareCPUKernel::DoArithmetic(int task_id) {
}

REG_KERNEL(kCPU, kNumberTypeFloat32, PrimitiveType_Equal, LiteKernelCreator<ArithmeticCompareCPUKernel>)
REG_KERNEL(kCPU, kNumberTypeInt32, PrimitiveType_Equal, LiteKernelCreator<ArithmeticCompareCPUKernel>)
REG_KERNEL(kCPU, kNumberTypeFloat32, PrimitiveType_NotEqual, LiteKernelCreator<ArithmeticCompareCPUKernel>)
REG_KERNEL(kCPU, kNumberTypeFloat32, PrimitiveType_Less, LiteKernelCreator<ArithmeticCompareCPUKernel>)
REG_KERNEL(kCPU, kNumberTypeInt32, PrimitiveType_Less, LiteKernelCreator<ArithmeticCompareCPUKernel>)


+ 1
- 0
mindspore/lite/test/models_tf.cfg View File

@@ -1 +1,2 @@
decoder_step_201217.pb 5
decoder_step_201217_modified.pb 5

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

@@ -332,6 +332,14 @@ function Run_x86() {
else
run_result='x86: '${model_name}' failed'; echo ${run_result} >> ${run_benchmark_result_file}; return 1
fi
# run benchmark test without clib data
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}"
if [ $? = 0 ]; then
run_result='x86: '${model_name}' pass'; echo ${run_result} >> ${run_benchmark_result_file}
else
run_result='x86: '${model_name}' failed'; echo ${run_result} >> ${run_benchmark_result_file}; return 1
fi
done < ${models_tf_config}

# Run tflite converted models:


+ 0
- 1
mindspore/lite/tools/converter/legacy_optimizer/graph/switch_pass.cc View File

@@ -248,7 +248,6 @@ STATUS SingleSwitchPass::InsertMerge() {
merge_node->inputIndex.end());

graph_->nodes.push_back(std::move(merge_node));
graph_->subGraph.at(this_subgraph_index_)->nodeIndices.push_back(graph_->nodes.size() - 1);

return RET_OK;
}


Loading…
Cancel
Save