Padding feature maps filled with zeros


(Rinku Jadhav) #1

I want to pad feature maps of zeros to the output of Conv2D but the only mode available for 5-D input is ‘replicate’. So is there any other way to pad zeros ?


#2

see F.pad http://pytorch.org/docs/nn.html#torch.nn.functional.pad