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

[TOPI] Reduce code redundancy in conv2d weights transformation #16080

Merged
merged 1 commit into from Nov 7, 2023

Conversation

Anndrey24
Copy link
Contributor

Refactored out a piece of common functionality from the conv2d_gemm_weight_transform and interleave_transpose_weights functions, which has previously led to bugs stemming from changes made to only one but not the other, like in #15584.
Determining the necessary padding for the interleaved and transposed weights matrix has now been separated into a new utility function, allowing future changes to be reflected in both callers.

cc @ekalda @lhutton1 @neildhickey @leandron

Refactored out a piece of common functionality from the `conv2d_gemm_weight_transform` and `interleave_transpose_weights` functions, which has previously led to bugs stemming from changes made to only one but not the other, like in apache#15584.
Determining the necessary padding for the interleaved and transposed weights matrix has now been separated into a new utility function, allowing future changes to be reflected in both callers.
@Hzfengsy Hzfengsy merged commit 2c2bb5e into apache:main Nov 7, 2023
18 checks passed
@Anndrey24 Anndrey24 deleted the conv2d-weights-transform branch November 7, 2023 09:37
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.

None yet

2 participants