ResNet names its models by depth, for example ResNet-18 and ResNet-34. In the basic-block design, the depth is a simple count: one stem convolution, two convolutions per residual block, and one classifier layer.
Implement resnet_depth(blocks), the nominal depth from the number of basic blocks per stage.
Two layers for the stem and classifier, plus two per block across all stages.
No results yet
Run your code to check it against the examples, or submit to run every test.