can not support get_dynamic_shape
Created by: chenjun2hao
i use dynamic shape in onnx model. and i have successfully convert to onnx model. when convert to paddle, the error is:
File "/root/miniconda3/envs/torch120/bin/x2paddle", line 11, in <module>
load_entry_point('x2paddle==0.5.0', 'console_scripts', 'x2paddle')()
File "/root/miniconda3/envs/torch120/lib/python3.6/site-packages/x2paddle-0.5.0-py3.6.egg/x2paddle/convert.py", line 211, in main
onnx2paddle(args.model, args.save_dir)
File "/root/miniconda3/envs/torch120/lib/python3.6/site-packages/x2paddle-0.5.0-py3.6.egg/x2paddle/convert.py", line 157, in onnx2paddle
mapper = ONNXOpMapper(model, save_dir)
File "/root/miniconda3/envs/torch120/lib/python3.6/site-packages/x2paddle-0.5.0-py3.6.egg/x2paddle/op_mapper/onnx_op_mapper.py", line 65, in __init__
self.get_output_shapes()
File "/root/miniconda3/envs/torch120/lib/python3.6/site-packages/x2paddle-0.5.0-py3.6.egg/x2paddle/op_mapper/onnx_op_mapper.py", line 157, in get_output_shapes
_, dtype, shape = self.get_dynamic_shape(opt)
File "/root/miniconda3/envs/torch120/lib/python3.6/site-packages/x2paddle-0.5.0-py3.6.egg/x2paddle/op_mapper/onnx_op_mapper.py", line 134, in get_dynamic_shape
output = np.load(os.path.join(self.tmp_data_dir, layer + '.npy'))
the model i used is:链接: https://pan.baidu.com/s/1WrTbTyVmBBJrT6ZVffx_3g 提取码: y9hb