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

Script to validate converting Fixed -> Dynamic shape ONNX model #7

Open
rmccorm4 opened this issue Mar 11, 2020 · 0 comments
Open

Script to validate converting Fixed -> Dynamic shape ONNX model #7

rmccorm4 opened this issue Mar 11, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@rmccorm4
Copy link
Owner

It's possible to edit an ONNX graph and change certain shapes, such as batch size, to -1 to create a dynamic shape model from an existing fixed shape model.

However, this isn't guaranteed to work in all cases, especially if a model contains any hard-coded shapes in an intermediate layer or something.

It would be nice to have a script that compares the output of the fixed shape and dynamic shape models for the same input shape, as well as for a larger batch size of identical inputs to make sure that the output for the whole batch is computed correctly.

@rmccorm4 rmccorm4 added the enhancement New feature or request label Mar 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant