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

Fix group transpose conv2d #9443

Closed

Conversation

alicja-SiMa-ai
Copy link
Contributor

@alicja-SiMa-ai alicja-SiMa-ai commented Nov 4, 2021

Shape of weights was incorrectly set for grouped transposed conv2D and implementation of the grouped transposed conv2D was missing. As a result, some models were not supported. Please see example of the CenterNet model here with error messagein particular dimension 1 conflicts 0 does not match 1; unable to unify: Tensor[(256, 0, 4, 4), float32] and Tensor[(256, 1, 4, 4), float32].
This PR adds missing implementation and required tests.

cc @comaniac

Change includes topi implementation, tests, generic and x86
strategy for group transposed convolution.

Signed-off-by: Alicja Kwasniewska <alicja.kwasniewska@sima.ai>
@AndrewZhaoLuo
Copy link
Contributor

Hmm is this perhaps related to #9336 ?

@alicja-SiMa-ai
Copy link
Contributor Author

@AndrewZhaoLuo #9336 changes the layout conversion. This PR addresses a different issue, it adds implementation of group transpose convolution 2D which was missing and fixes weight shape to support groups.

Copy link
Member

@vinx13 vinx13 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@junrushao
Copy link
Member

@Lyken17 @alicja-SiMa-ai just to double check, is this commit superseded via this commit 3ad7c4a? Thanks!

@alicja-SiMa-ai
Copy link
Contributor Author

Yes @junrushao1994, it was integrated into #9465. Closing this one. Thanks everyone!

@junrushao
Copy link
Member

Thank you @alicja-SiMa-ai for the huge effort!! This is super helpful!

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.

4 participants