def deconvolution_nd(x, W, b=None, stride=1, pad=0, outsize=None, use_cudnn=True):
 ndim = len(x.shape[2:])
 func = DeconvolutionND(ndim, stride, pad, outsize, use_cudnn)
 if (b is None):
  return func(x, W)
 else:
  return func(x, W, b)

def deconvolution_nd ( x , W , b = None , stride = 1 , pad = 0 , outsize = None , use_cudnn = True ) : ndim = len ( x . shape [ 2 : ] ) func = DeconvolutionND ( ndim , stride , pad , outsize , use_cudnn ) if ( b is None ) : return func ( x , W ) else : return func ( x , W , b )
n-dimensional deconvolution function .