ResNet (He et al., 2016) opens with a large strided convolution that shrinks the image. Knowing how the spatial size changes at each layer is needed to design such networks and to check their shapes.
Implement conv_output_size(n, k, s, p), returning the output length of a convolution along one dimension.
Add the padding on both sides, subtract the kernel, divide by the stride, floor, then add one.
No results yet
Run your code to check it against the examples, or submit to run every test.