def linear(x, W, b=None):
 if (b is None):
  return LinearFunction()(x, W)
 else:
  return LinearFunction()(x, W, b)

def linear ( x , W , b = None ) : if ( b is None ) : return LinearFunction ( ) ( x , W ) else : return LinearFunction ( ) ( x , W , b )
linear function .