Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

run postprocess_onnx.py failed #2

Open
maoxiaoming86 opened this issue Mar 24, 2021 · 1 comment
Open

run postprocess_onnx.py failed #2

maoxiaoming86 opened this issue Mar 24, 2021 · 1 comment

Comments

@maoxiaoming86
Copy link

When I use postprocess_onnx to process the onnx model which is the output of step 4, encounter a erro:
Traceback (most recent call last):
File "postprocess_onnx_ori.py", line 54, in
graph = process_transpose_nodes(graph)
File "postprocess_onnx_ori.py", line 33, in process_transpose_nodes
conv_weights_tensor = node.i(1).i().i().inputs[0]
File "/root/.local/lib/python3.8/site-packages/onnx_graphsurgeon/ir/node.py", line 62, in i
return self.inputs[tensor_idx].inputs[producer_idx]

Then I view the onnx model by Netron, I find that every conv node's input[1] is just a tensor, not a node, so when run node.i(1) failed. Is this a bug or miss some instructions between step 4 and step5?

@wilbur-caper
Copy link

How can this be solved?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants