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

add script to run optimizer on onnx files #1538

Merged
merged 3 commits into from
May 27, 2021
Merged

Conversation

guschmue
Copy link
Contributor

Signed-off-by: Guenther Schmuelling guschmue@microsoft.com

Signed-off-by: Guenther Schmuelling <guschmue@microsoft.com>
Copy link
Contributor

@TomWildenhain-Microsoft TomWildenhain-Microsoft left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

At some point we might want to move this inside tf2onnx so it gets pip installed (something like tf2onnx.optimize(model)) but for now looks good.

@guschmue
Copy link
Contributor Author

guschmue commented May 26, 2021

yeap, agree. I guess we need to figure if our optimizations would help pytorch exporter. The tool prints some stats. Maybe I can run this on some huggingface models.

@lgtm-com
Copy link

lgtm-com bot commented May 26, 2021

This pull request introduces 4 alerts when merging 684fb67 into 5e0b4f3 - view on LGTM.com

new alerts:

  • 3 for Unused import
  • 1 for Module is imported with 'import' and 'import from'

guschmue added 2 commits May 26, 2021 13:37
Signed-off-by: Guenther Schmuelling <guschmue@microsoft.com>
@lgtm-com
Copy link

lgtm-com bot commented May 26, 2021

This pull request introduces 1 alert when merging 31adf27 into cba8f8d - view on LGTM.com

new alerts:

  • 1 for Module is imported with 'import' and 'import from'

@guschmue guschmue merged commit 2f9078e into master May 27, 2021
@guschmue guschmue deleted the gs/onnx-optimizer-cmd branch May 27, 2021 01:57
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

Successfully merging this pull request may close these issues.

2 participants