Five Stages Later

ConvolutionMedium+20 XP+20

Five Stages Later

A colour photograph enters a network as a 64×64×364 \times 64 \times 364×64×3 block and passes through five stages in order.

stageoperation
1convolution — 3×33 \times 33×3 kernel, 16 filters, stride 1, padding 1
2max pooling — 2×22 \times 22×2 window, stride 2
3convolution — 5×55 \times 55×5 kernel, 32 filters, stride 1, no padding
4max pooling — 2×22 \times 22×2 window, stride 2
5convolution — 3×33 \times 33×3 kernel, 64 filters, stride 2, no padding

"Padding 1" means a one-pixel border of zeros is added to every side before the window starts moving. In every stage the window only ever stops where it fits completely inside the grid it is given.

How many individual numbers are in the block that comes out of stage 5?

That is width ×\times× height ×\times× depth. Give the exact integer.

32×32×3
conv
32×32×16
pool
16×16×16
conv
16×16×32
pool
8×8×32

Repeat the pair. The block keeps getting narrower and deeper — that shape is the signature of a convolutional network.

Hints

Solve it to unlock the solution

Once you get it right, the reasoning behind the answer shows up here.