def roi_pooling_2d(x, rois, outh, outw, spatial_scale):
 return ROIPooling2D(outh, outw, spatial_scale)(x, rois)

def roi_pooling_2d ( x , rois , outh , outw , spatial_scale ) : return ROIPooling2D ( outh , outw , spatial_scale ) ( x , rois )
spatial region of interest pooling function .