def localUp(images, filters, targets, numModulesX, paddingStart, moduleStride, numImgColors, numGroups=1):
 numImages = images.shape[0]
 numFilters = filters.shape[0]
 assert (targets.shape == (numImages, ((numFilters * numModulesX) * numModulesX))), ('%s %d %d-%d-%d' % (targets.shape.__str__(), numImages, numFilters, numModulesX, numModulesX))
 _ConvNet.localUp(images.p_mat, filters.p_mat, targets.p_mat, numModulesX, (- paddingStart), moduleStride, numImgColors, numGroups)

def localUp ( images , filters , targets , numModulesX , paddingStart , moduleStride , numImgColors , numGroups = 1 ) : numImages = images . shape [ 0 ] numFilters = filters . shape [ 0 ] assert ( targets . shape == ( numImages , ( ( numFilters * numModulesX ) * numModulesX ) ) ) , ( '%s %d %d-%d-%d' % ( targets . shape . __str__ ( ) , numImages , numFilters , numModulesX , numModulesX ) ) _ConvNet . localUp ( images . p_mat , filters . p_mat , targets . p_mat , numModulesX , ( - paddingStart ) , moduleStride , numImgColors , numGroups )
images - filters - targets - nummodulesx - number of filter locations along an axis .