CLASS torch.nn.ZeroPad2d(padding)
Pads the input tensor boundaries with zero.For N-dimensional padding, use torch.nn.functional.pad()
.
Parameters
padding (int, tuple) – the size of the padding. If is int, uses the same padding in all boundaries. If a 4-tuple, uses (padding_left, padding_right,padding_right,padding_top,padding_top, padding_bottom,padding_bottom).