When the Shortcut Does Not Fit

Convolutional ArchitecturesHard+30 XP+30

When the Shortcut Does Not Fit

A residual block computes

output=F(x)+x\text{output} = F(x) + xoutput=F(x)+x

where FFF is the block's convolution path and xxx is the input carried around it by the skip connection.

Most blocks sit inside a stage, where nothing about the shape changes from input to output. But at a stage boundary the network follows the usual convention: the grid halves and the filter count doubles.

Take one such block. Its input is

x:28×28×128x: \quad 28 \times 28 \times 128x:28×28×128

and its convolution path produces

F(x):14×14×256F(x): \quad 14 \times 14 \times 256F(x):14×14×256

What does a working ResNet do at this block?

Hints

Solve it to unlock the solution

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

Select all that apply.