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?
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
Why does pytorch not have this feature? It would greatly help with quick prototyping
Most helpful comment
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