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

Remove Dropout with ratio=0 with RemoveIdentityOps #157

Merged
merged 3 commits into from
Dec 4, 2024

Conversation

maltanar
Copy link
Collaborator

@maltanar maltanar commented Dec 4, 2024

Dropout nodes with a dropout ratio of zero (indicated by either an attribute or an optional input, depending on opset) are identity ops and can be removed from inference graphs.

This PR adds this capability to RemoveIdentityOps, adds a corresponding test, and also a test for the previously-untested case of Pad nodes specifying no padding.

@maltanar maltanar merged commit 235ad4f into main Dec 4, 2024
5 checks passed
@maltanar maltanar added this to the v0.4.0 milestone Dec 20, 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.

1 participant