Added global_pooling to set the kernel size equal to the bottom size