-
Notifications
You must be signed in to change notification settings - Fork 314
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
How to delete the Range operator node in ONNX export #1878
Comments
Can you post screenshots for it? What is the issue of having such an operator in ONNX? |
which version of rknn-toolkit2 are you using? have you tried 2.1.0 or above? |
or are you still using 1.6.0? |
I tried 2.3.0 and 2.1.0 versions of the tool chain, and both of them encountered this problem. I just looked up the given encoder model in rknn_model_zoo and found that their fp32 model is fixed-length and the derived model has no Range operator, but the int8 model is dynamic-length and contains Range operator. Converting their fp32 model can be converted normally, but the int8 model will encounter the same problem. |
Description:
We noticed that in the process of exporting the PyTorch model to the ONNX format, the generated ONNX model contains a Range operator. The locations of these nodes are basically like /encoder//encoder//self _ attn _ weights/Range. What part of the code may cause this problem, and how can I modify it to prevent the range operator from appearing in the exported onnx model?
The model export code used is: icefall/egs/librispeech/ASR/zipformer/export-onnx.py
We would appreciate any insights or suggestions on this matter.
The text was updated successfully, but these errors were encountered: