def localOutp(images, hidSums, targets, numModulesX, paddingStart, filterSizeX, moduleStride, numImgColors):
 numGroups = 1
 partialSum = 0
 numImages = images.shape[0]
 numFilters = (hidSums.shape[1] / (numModulesX ** 2))
 assert (targets.shape == (numFilters, (((numModulesX ** 2) * numImgColors) * (filterSizeX ** 2)))), ('%s %d %d-%d-%d' % (targets.shape.__str__(), numFilters, numImgColors, filterSizeX, filterSizeX))
 _ConvNet.localOutp(images.p_mat, hidSums.p_mat, targets.p_mat, numModulesX, filterSizeX, (- paddingStart), moduleStride, numImgColors, numGroups, partialSum)

def localOutp ( images , hidSums , targets , numModulesX , paddingStart , filterSizeX , moduleStride , numImgColors ) : numGroups = 1 partialSum = 0 numImages = images . shape [ 0 ] numFilters = ( hidSums . shape [ 1 ] / ( numModulesX ** 2 ) ) assert ( targets . shape == ( numFilters , ( ( ( numModulesX ** 2 ) * numImgColors ) * ( filterSizeX ** 2 ) ) ) ) , ( '%s %d %d-%d-%d' % ( targets . shape . __str__ ( ) , numFilters , numImgColors , filterSizeX , filterSizeX ) ) _ConvNet . localOutp ( images . p_mat , hidSums . p_mat , targets . p_mat , numModulesX , filterSizeX , ( - paddingStart ) , moduleStride , numImgColors , numGroups , partialSum )
images - hidsums - targets - .