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 convolution for non-square kernels #3376

Merged
merged 5 commits into from Jan 26, 2023

Conversation

rcurtin
Copy link
Member

@rcurtin rcurtin commented Jan 24, 2023

In #3365, @AllIAskOfYou reported that simple convolutional networks fail for non-square kernels. It turns out the reason for this is that when we rotate an MxN kernel for the backwards pass, we mistakenly attempt to put it into an NxM matrix, which fails. My guess is that this was just a simple mix-up: rotating 90 degrees would transpose the result, but 180 does not (and we are doing 180). Anyway, the fix is very nice and easy. :)

@rcurtin rcurtin merged commit be551f3 into mlpack:master Jan 26, 2023
@rcurtin rcurtin deleted the conv-filter-rotate branch January 26, 2023 01:05
@rcurtin rcurtin mentioned this pull request Apr 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants