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

How to convert to onxx/tensorRT? #17

Open
zhenyi1998 opened this issue Sep 26, 2023 · 1 comment
Open

How to convert to onxx/tensorRT? #17

zhenyi1998 opened this issue Sep 26, 2023 · 1 comment

Comments

@zhenyi1998
Copy link

Has anyone managed to convert? I am trying to improve the speed of the model, much appreciated!

@Mohammadakhavan75
Copy link

Hello,

I've been having trouble converting this model to ONNX, but I think I've narrowed down the problem to line 189 of the spiga/model/spiga.py file. In this line, the tensor is reshaped, which causes problems during the conversion to ONNX. This is because ONNX needs to know the exact shape of each variable (tensor) in order to create a graph. The reshape operation prevents ONNX from knowing the exact shape of the tensor, which causes the conversion to fail.

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