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
Hello- currently pytorch has ReflectionPadding and ReplicationPadding but not ZeroPadding, and I'd like to help add it.
(Bear with me, as I'm new to the codebase)
After reading a bit, it seems like the currently implemented padding modules call backend functions which are themselves automatically imported/created by scanning through the the function definitions in THNN.h, and wrapping compiled code based on that.
However, the legacy padding module seems a bit simpler, and is in pure python. I hoping there is some standard and straight-foreward way to re-write updateOutput() and updateGradInput() into forward() and backward(), respectively. In support of this notion, I wasn't able to find any THNN code for padding.
Activity
apaszke commentedon Apr 21, 2017
I think
F.padalready supports that, so ZeroPadding could just call into that.andrewgiessel commentedon Apr 21, 2017
Ah, excellent. Should be straight forward, thanks!
varunagrawal commentedon Sep 11, 2017
@andrewgiessel @apaszke I guess we can close this?
Explicitly track all unmappable dims in compute at. (pytorch#1324)
[ROCm] int64_t added for JIT codegen (#1324)
Update third_party/kineto submodule to 185fe9c