2D max pooling that also returns where each maximum came from

0
Remix

Implement 2D max pooling over a grid of integers: a k by k window moves across the grid with a given stride, and each window outputs its maximum. Follow-up: for every output cell, also return the coordinates in the input of the maximum, and say how you break ties.

WaymoCodingLast asked Sep 2026
No answer yet. Write the first one; the best answer gets endorsed.