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

Fuse padding layers into (Depthwise) Convolutions #712

Merged
merged 9 commits into from
Feb 15, 2022

Conversation

Tombana
Copy link
Collaborator

@Tombana Tombana commented Feb 15, 2022

What do these changes do?

The MobileNet models in tf.keras.applications have unneeded explicit padding layers. This PR introduces an MLIR pass that fuses such layers into (Depthwise) Convolutions.

How Has This Been Tested?

An MLIR FileCheck test has been added.

@Tombana Tombana requested a review from a team February 15, 2022 09:37
@Tombana Tombana added the internal-improvement Internal Improvements and Maintenance label Feb 15, 2022
@Tombana Tombana merged commit 7db969f into main Feb 15, 2022
@Tombana Tombana deleted the fuse_padding_into_conv branch February 15, 2022 12:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal-improvement Internal Improvements and Maintenance
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants