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

[BUG] Nodes in a graph must be topologically sorted, however OpType: Loop is not output of any previous nodes. #335

Open
Basicname opened this issue Jul 5, 2024 · 1 comment

Comments

@Basicname
Copy link

Describe the bug
A clear and concise description of what the bug is.

When converting paraformer model with option '--overwrite-input-shape speech:1,83,560 speech_lengths:1 bias_embed:1,2,512', onnxsim ended with error:
onnx.onnx_cpp2py_export.checker.ValidationError: Nodes in a graph must be topologically sorted, however input 'onnx::Loop_8451' of node: name: Loop_9932 OpType: Loop is not output of any previous nodes.
When I remove the option, it still happens.
Note: Before the error, onnxsim outputs 'WARNING: failed to run "SequenceEmpty" op (name is "SequenceEmpty_9930"), skip...'
Model
To reproduce the problem, please post download link of your model here, or send your model to [email protected]
Here is my model, which is converted from paraformer pytorch model by modelscope.
Google Drive

@Basicname
Copy link
Author

I think the problem is related to SequenceEmpty because Loop_8451 is from SequenceEmpty

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

1 participant