What is the output?
input 4x4: 1 3 2 0 4 2 1 5 0 1 3 2 2 6 1 1 MaxPool2d(kernel_size=2, stride=2)
- [[4, 5], [6, 3]]
- [[3, 5], [6, 3]]
- [[4, 5], [2, 3]]
- [[2.5, 2], [2.25, 1.75]]
Each non-overlapping 2x2 window keeps its maximum: 4, 5, 6 and 3.
Play AI & ML ▸