You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an application where I would like to be able to control the padding for the convolution. The way I am doing this now is to just use a much larger matrix than I need, but this is a waste of computation, especially for larger kernels. Is there any simple and efficient way I can use my own padding?
The text was updated successfully, but these errors were encountered:
After thinking about it a bit more, I think what I would like is similar to the option mode='valid' in python (and I think matlab). This mode should be somewhat faster because it doesn't need to compute the convolution with any cells that would need padding.
IIUC, that means chopping off mix(M,N)-1 elements at both sides of the result as it is computed now, where M and N are the input lengths, with the obvious extension to more than one dimension. Sounds reasonable.
I have an application where I would like to be able to control the padding for the convolution. The way I am doing this now is to just use a much larger matrix than I need, but this is a waste of computation, especially for larger kernels. Is there any simple and efficient way I can use my own padding?
The text was updated successfully, but these errors were encountered: