Padding feature maps filled with zeros

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 ?

1 Like

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

1 Like