def max_pooling_2d(x, ksize, stride=None, pad=0, cover_all=True, use_cudnn=True):
 return MaxPooling2D(ksize, stride, pad, cover_all, use_cudnn)(x)

def max_pooling_2d ( x , ksize , stride = None , pad = 0 , cover_all = True , use_cudnn = True ) : return MaxPooling2D ( ksize , stride , pad , cover_all , use_cudnn ) ( x )
spatial max pooling function .