model_optimize_tool report "segment fault"
Created by: MARMOTatZJU
I use Paddle-Lite==2.1.0 I use the code as follows:
./model_optimize_tool \
--model_file "$model_path"/inference_model/__model__ \
--param_file "$model_path"/inference_model/__params__ \
--optimize_out_type naive_buffer \
--optimize_out ./optimized/"$model_dirname" \
--valid_targets arm \
#
And I have already verified that the model can run on PaddlePaddle (PC side).
However, when I try to convert the model into .nb format, I encounter segment fault .
$ sh bash_scripts/optimize.sh
[W 12/ 4 1:48:12.240 ...dle-Lite/lite/api/model_optimize_tool.cc:121 RunOptimize] Load combined-param model. Option model_dir will be ignored
[I 12/ 4 1:48:12.240 ...upstream/Paddle-Lite/lite/api/cxx_api.cc:211 Build] load from memory 0
Segmentation fault
I have tried the released binary tool and the tool compiled on my PC. and neither of them works for me. I wonder how I can solve it.
Thanks in advance.