export model 出现Tensor not initialized yet when Tensor::type() is called错误
Created by: ARQlalala
根据教程 导出模型的过程:
python tools/export_model.py
--model=MobileNetV3_large_x1_0
--pretrained_model=./output/MobileNetV3_large_x1_0/best_model_in_epoch_7/
--output_path=./convert/ \
报错如下:有经验的小伙伴帮忙看看?
Python Call Stacks (More useful to users):
File "/root/anaconda3/lib/python3.7/site-packages/paddle/fluid/framework.py", line 2525, in append_op attrs=kwargs.get("attrs", None)) File "/root/anaconda3/lib/python3.7/site-packages/paddle/fluid/io.py", line 343, in save_vars 'save_to_memory': save_to_memory File "/root/anaconda3/lib/python3.7/site-packages/paddle/fluid/io.py", line 295, in save_vars filename=filename) File "/root/anaconda3/lib/python3.7/site-packages/paddle/fluid/io.py", line 641, in save_persistables filename=filename) File "/root/anaconda3/lib/python3.7/site-packages/paddle/fluid/io.py", line 1246, in save_inference_model save_persistables(executor, save_dirname, main_program, params_filename) File "tools/export_model.py", line 74, in main params_filename='params') File "tools/export_model.py", line 78, in main()
Error Message Summary:
Error: Tensor not initialized yet when Tensor::type() is called. [Hint: holder_ should not be null.] at (/paddle/paddle/fluid/framework/tensor.h:140) [operator < save_combine > error]