def average_pooling_2d(x, ksize, stride=None, pad=0, use_cudnn=True):
 return AveragePooling2D(ksize, stride, pad, False, use_cudnn)(x)

def average_pooling_2d ( x , ksize , stride = None , pad = 0 , use_cudnn = True ) : return AveragePooling2D ( ksize , stride , pad , False , use_cudnn ) ( x )
spatial average pooling function .