Compute Conv2D parameter counts
TeslaMachine Learning Engineer · Technical ScreenLast updated
This question evaluates understanding of convolutional neural network parameterization, specifically how kernel dimensions, input/output channels and an optional bias term determine the number of learnable parameters.
For a 2D convolution layer, given input channels C_in, output channels C_out, kernel size (k_h, k_w), stride (s_h, s_w), padding (p_h, p_w), and an optional bias term, compute the total number of learnable parameters for the layer in both cases: with bias and without bias.
Solution walkthrough is for members
Get the full walkthrough with reference code and complexity analysis, plus Kitty Coach at 300 messages a day. Hints, the code runner and community answers stay free.