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

Feature: Added optimization step to remove upsample layers with all ones in scale #1074

Merged
merged 8 commits into from
Aug 25, 2020

Conversation

NikolasMarkou
Copy link
Contributor

Upsample operations with all ones in scale are redundant and can be safely removed. In this commit I replace them with an Identity node which is then removed by the Identity optimization step.

tf2onnx/optimizer/upsample_optimizer.py Outdated Show resolved Hide resolved
@lgtm-com
Copy link

lgtm-com bot commented Aug 22, 2020

This pull request introduces 1 alert when merging 715c20c into 1a35937 - view on LGTM.com

new alerts:

  • 1 for Unused import

@guschmue guschmue merged commit 080c7a4 into onnx:master Aug 25, 2020
@guschmue
Copy link
Contributor

Thanks a ton for the contribution!

@NikolasMarkou NikolasMarkou deleted the upsample_optimizer branch August 26, 2020 04:14
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