error
Created by: yangninghua
(pytorch1_1_0) boyun@boyun:~/software/ubuntu-wine/BaiduYunDownload/X2Paddle-master/onnx2fluid$ onnx2fluid resnet18.onnx -t sample_1.npz [ INFO]convert::convert:0051: loading model: resnet18.onnx ... [ INFO]convert::convert:0054: checking model ... [ INFO]convert::convert:0072: model has 296 ops [ INFO]convert::convert:0073: optimizing model ... [ INFO]convert::convert:0082: folder resnet18/ cleared [ INFO]convert::convert:0113: conversion started [CRITICAL]convert::convert:0136: conversion failed for: ['646', '653'] -> ::Reshape -> ['654'] Traceback (most recent call last): File "/home/boyun/anaconda3/envs/pytorch1_1_0/bin/onnx2fluid", line 11, in load_entry_point('onnx2fluid==0.1.1', 'console_scripts', 'onnx2fluid')() File "/home/boyun/anaconda3/envs/pytorch1_1_0/lib/python3.6/site-packages/pkg_resources/init.py", line 489, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "/home/boyun/anaconda3/envs/pytorch1_1_0/lib/python3.6/site-packages/pkg_resources/init.py", line 2843, in load_entry_point return ep.load() File "/home/boyun/anaconda3/envs/pytorch1_1_0/lib/python3.6/site-packages/pkg_resources/init.py", line 2434, in load return self.resolve() File "/home/boyun/anaconda3/envs/pytorch1_1_0/lib/python3.6/site-packages/pkg_resources/init.py", line 2440, in resolve module = import(self.module_name, fromlist=['name'], level=0) File "", line 971, in _find_and_load File "", line 955, in _find_and_load_unlocked File "", line 656, in _load_unlocked File "", line 626, in _load_backward_compatible File "/home/boyun/anaconda3/envs/pytorch1_1_0/lib/python3.6/site-packages/onnx2fluid-0.1.1-py3.6.egg/onnx2fluid/main.py", line 106, in File "/home/boyun/anaconda3/envs/pytorch1_1_0/lib/python3.6/site-packages/onnx2fluid-0.1.1-py3.6.egg/onnx2fluid/cmdline.py", line 60, in main File "/home/boyun/anaconda3/envs/pytorch1_1_0/lib/python3.6/site-packages/onnx2fluid-0.1.1-py3.6.egg/onnx2fluid/conversion.py", line 137, in convert File "/home/boyun/anaconda3/envs/pytorch1_1_0/lib/python3.6/site-packages/onnx2fluid-0.1.1-py3.6.egg/onnx2fluid/conversion.py", line 132, in convert File "/home/boyun/anaconda3/envs/pytorch1_1_0/lib/python3.6/site-packages/onnx2fluid-0.1.1-py3.6.egg/onnx2fluid/writer.py", line 312, in emit_op File "/home/boyun/anaconda3/envs/pytorch1_1_0/lib/python3.6/site-packages/onnx2fluid-0.1.1-py3.6.egg/onnx2fluid/writer.py", line 244, in Op File "/home/boyun/anaconda3/envs/pytorch1_1_0/lib/python3.6/site-packages/onnx2fluid-0.1.1-py3.6.egg/onnx2fluid/symbolic.py", line 1559, in Reshape File "/home/boyun/anaconda3/envs/pytorch1_1_0/lib/python3.6/site-packages/onnx2fluid-0.1.1-py3.6.egg/onnx2fluid/writer.py", line 200, in OpDesc File "/home/boyun/anaconda3/envs/pytorch1_1_0/lib/python3.6/site-packages/onnx2fluid-0.1.1-py3.6.egg/onnx2fluid/writer.py", line 152, in OpDescAttrs ValueError: unsupported attribute shape = []