def spatial_pyramid_pooling_2d(x, pyramid_height, pooling_class, use_cudnn=True):
 return SpatialPyramidPooling2D(x.shape[1:], pyramid_height, pooling_class, use_cudnn=use_cudnn)(x)

def spatial_pyramid_pooling_2d ( x , pyramid_height , pooling_class , use_cudnn = True ) : return SpatialPyramidPooling2D ( x . shape [ 1 : ] , pyramid_height , pooling_class , use_cudnn = use_cudnn ) ( x )
spatial pyramid pooling function .