← Questions
2D convolution forward pass in NumPy, with parameter counts
0
I was asked this
No reports yet. Sign in to say where you were asked it.
- Given the input tensor shape, input channels, output channels, kernel size, stride and padding, how many parameters does a Conv2D layer have, with and without bias? What is the output shape?
- Implement the forward pass of a 2D convolution in NumPy, first with plain loops.
- Vectorize it (for example with an im2col-style reshaping) and check it against your loop version.
No official answer yet. Write yours on the right and run it.
Nothing published yet.
Sign in to submit your code; every attempt is kept here.
Write and test your solution herePython in your browser, the question's tests level by level, every submission kept for you.Sign in to start coding
