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

New transformation: Im2Col rebalancing for certain cases #22

Merged
merged 2 commits into from
Aug 17, 2022

Conversation

maltanar
Copy link
Collaborator

New transformation RebalanceIm2Col: For certain hardware that prefers channel parallelism over feature map spatial parallelism, it is possible to reshape the inputs to an Im2Col node to move some of the spatial dimension into the channels dimension. This transformation attempts to find such Im2Col nodes, adds a Reshape node in front and alters their kernel/stride sizes accordingly. See list of conditions checked in the implementation for a full list, but one example of
rebalancing is provided in the unit test for this transformation (test_rebalance_conv.py)

@maltanar maltanar merged commit 3fb9ac6 into main Aug 17, 2022
@maltanar maltanar deleted the feature/conv-rebalance branch August 17, 2022 19:28
@maltanar maltanar added this to the v0.2.0 milestone Feb 16, 2023
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