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

Fixes failed export to ONNX when input w/h is dynamic #804

Closed
wants to merge 1 commit into from

Conversation

matthill
Copy link

This change fixes a failed export to ONNX when using dynamic values for w/h input. Example export code below:

input_shape = 1, 3, 640, 640
feat = torch.randn(input_shape)

input_names = ["input"]

torch.onnx.export(model, feat, 'model.onnx',
                  input_names=input_names,
                  dynamic_axes={'input': {2: 'width', 3: 'height'}},
                  verbose=True, opset_version=18)

@github-actions
Copy link

This PR is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 15 days.

@github-actions github-actions bot added the Stale label Oct 23, 2023
Copy link

github-actions bot commented Nov 7, 2023

This PR was closed because it has been stalled for 15 days with no activity.

@github-actions github-actions bot closed this Nov 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant