Instead of flattening a large feature map into a dense layer with many parameters, the paper averages each channel over space. The result is one number per class-specific channel, with no extra weights.
Implement global_average_pool(x), which averages an (H, W, C) feature map over its spatial dimensions and returns a length-C vector.
(C,).Average over axes 0 and 1 together.
No results yet
Run your code to check it against the examples, or submit to run every test.