Padding

الحشو

Definition

Adding values (usually zeros) around the edges of the input before convolution to control the size of the output.

Definition

Padding adds border values, usually zeros, around an input before convolution, controlling output size and preserving edge information.

Mathematical equations

n_{out}=\left\lfloor\frac{n+2p-k}{s}\right\rfloor+1

Learn and review

Suggested terms to learn next