by Michele Laurelli
Adding extra pixels around the border of input data to control output size in convolution operations.
Padding preserves spatial dimensions and prevents information loss at borders. 'Valid' padding = no padding, 'Same' padding = output size matches input. Common: zero-padding.
Zero padding for same output size
Valid padding for reduction
Preserving border information