def convolution_2d(x, W, b=None, stride=1, pad=0, use_cudnn=True, cover_all=False, deterministic=False):
 func = Convolution2DFunction(stride, pad, use_cudnn, cover_all, deterministic)
 if (b is None):
  return func(x, W)
 else:
  return func(x, W, b)

def convolution_2d ( x , W , b = None , stride = 1 , pad = 0 , use_cudnn = True , cover_all = False , deterministic = False ) : func = Convolution2DFunction ( stride , pad , use_cudnn , cover_all , deterministic ) if ( b is None ) : return func ( x , W ) else : return func ( x , W , b )
two-dimensional convolution function .