Convolution output shape and parameters

Problem

An input has shape 32×32×332\times32\times3. A convolution uses 1616 filters of size 5×55\times5, stride 22, padding 22, and one bias per filter. Compute the output shape and trainable parameter count.

Reveal answer or reference solution

Each spatial dimension is

32+2(2)52+1=16,\left\lfloor\frac{32+2(2)-5}{2}\right\rfloor+1=16,

so the output is 16×16×1616\times16\times16. The parameter count is

5×5×3×16+16=1216.5\times5\times3\times16+16=1216.

Local history

Loading attempts saved in this browser…

Use with your agent

Share this URL and your attempt. Ask the agent to start with a clarifying question or the smallest useful hint.

Tutor me on https://mlprep.iwase.dev/machine-learning/convolution/original-ml-convolution/. If window.mlPrepAgent is available, read attempts for item original-ml-convolution before tutoring. Inspect my attempt, keep the item ID, and do not reveal the full answer first. After a real attempt, append its record and read it back.

Appears in