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 identity node to removal list #137

Conversation

jurevreca12
Copy link

Updates the RemoveIdentityOps in src/qonnx/transformation/remove.py to also remove onnx.Identity nodes. These nodes are left in the onnx graph by the QKeras-to-ONNX converter. However they are defined essentially as "passthrough" nodes, that do not perform any computation but just forward the tensor along.

This PR follows PR: Is tensor representable #136. After it is merged into main the only change will be additional 4 lines in remove.py.

@maltanar
Copy link
Collaborator

maltanar commented Sep 12, 2024

I've cherry picked the commit 3eddb38 making the key changes for this PR and merged as part of #87. Thanks @jurevreca12 !

@maltanar maltanar closed this Sep 12, 2024
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