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

Does onnx2torch support dynamic input shape? #205

Open
liamsun2019 opened this issue Mar 19, 2024 · 0 comments
Open

Does onnx2torch support dynamic input shape? #205

liamsun2019 opened this issue Mar 19, 2024 · 0 comments

Comments

@liamsun2019
Copy link

Hi author,
I am curious if onnx2torch supports dynamic input shape. I try to convert an onnx whose input shape is dynamic, i.e, [batch, 10, 20, 30]. The conversion looks normal where no errors rise up. But the inference based on the converted model fails with following errors:

RuntimeError: Given groups=1, weight of size [xx, yy, zz], expected input[aa, bb, cc] to have XX channels, but got YY channels instead

The code snippet:
model = onnx2torch.convert(onnx_model)
model(*dummy_input)

Any comments? Thanks.

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