I don’t have a reproduction code to share unfortunately. Padding size is (2,2) and kernel size is (5,5) , rest are all defaults. Input coming in is (2,4,7,7). Maybe this can be reproduced if you initialize all the input values to pool to be negative at the bottom right corner that contains the kernel for pooling with zero padding as you see in my example above.