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

OnnxBridge can not handle reused constant #210

Open
yyz233 opened this issue Apr 12, 2024 · 0 comments
Open

OnnxBridge can not handle reused constant #210

yyz233 opened this issue Apr 12, 2024 · 0 comments

Comments

@yyz233
Copy link

yyz233 commented Apr 12, 2024

I've discovered that OnnxBridge struggles with handling reused constants in ONNX when using SECFLOAT as the backend.
For instance, if a reshape constant (10, -1) is used in two different reshape nodes in an ONNX model, OnnxBridge will create the data 10.0, -1.0 and duplicate it in the model_weight.inp file. However, in the generated .cpp file, these values are not inputted twice, which causes an issue where all data after it cannot be read correctly.

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