def ones(shape, dtype=None, name=None):
 if (dtype is None):
  dtype = floatx()
 return variable(np.ones(shape), dtype, name)

def ones ( shape , dtype = None , name = None ) : if ( dtype is None ) : dtype = floatx ( ) return variable ( np . ones ( shape ) , dtype , name )
instantiates an all-ones variable .