To see what a max-pooling layer discards, Zeiler and Fergus recorded the position of each pooled maximum, its switch. Those switches let a deconvolution network place activations back where they came from.
Implement max_pool_switches(x, size), returning the offset of the maximum within each pooling window.
Reshape the signal into rows of length size, then take the argmax of each row.
No results yet
Run your code to check it against the examples, or submit to run every test.