Network in Network (Lin, Chen & Yan, 2013) replaces a convolution's linear filter with a small multilayer network applied at every position. A 1x1 convolution is the simplest form: a dense layer over channels, reused at each pixel.
Implement conv1x1(x, W, b), which maps an (H, W, C) feature map to (H, W, C_out) with one linear layer per pixel.
W and b are used at every spatial position.Apply x @ W.T + b; NumPy broadcasts the matrix multiply over the first two axes.
No results yet
Run your code to check it against the examples, or submit to run every test.