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
In Con2d layer,how to pad "Same" not "Zero" #1021
Comments
pytorch does not have this option. if you want to do something like this, you have to explicitly pad via nn.functional.pad in the replicate mode: http://pytorch.org/docs/nn.html#torch.nn.functional.pad |
thanks |
5 tasks
Why does pytorch not have this feature? It would greatly help with quick prototyping |
jjsjann123
added a commit
to jjsjann123/pytorch
that referenced
this issue
Aug 5, 2021
Vectorization was disabled when broadcast inner axes exist. Fixes pytorch#1021 patched with CI failure Co-authored-by: jjsjann123 <alex.jann2012@gmail.com>
zhuhong61
pushed a commit
to zhuhong61/pytorch
that referenced
this issue
Jun 8, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In Con2d layer,how to pad "Same" not "Zero".
In tensorflow , i see the option to choose whether pad the "Same" pixel as edge or pad "Zero" pixel .But dose pytorch have that option?
The text was updated successfully, but these errors were encountered: