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

Added check for padding and stride with global_pooling
Merge pull request #1214 from sguada/global_pooling

Add global_pooling to cover the whole input by setting kernel size to bottom size