-
Notifications
You must be signed in to change notification settings - Fork 4
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
flip kernel when do the convolution. #4
Comments
Hello, In PyTorch, the function torch.nn.functional.conv2d() implements a cross correlation between the input and the kernel not a convolution as the name would suggest. To implement a convolution, one just need to flip the blur kernel. I also need to have a cross-correlation function in the code since I need both the operator H (a convolution) and its transpose |
then the main difference between cross-correlation and convolution is flip and not flip right? |
Yes, the operation is the same but the filter is flipped. |
thanks! |
Hello,
I just noticed that you flip the blur kernel in the
convolve_tensor
function and do not do that incross_correlate_tensor
. May I know the reason behind this?Thank you!
The text was updated successfully, but these errors were encountered: