parameters: (self, func=None, variable=True, const=True)
return_statement: return ivars
docstring: Return list of inputs, i.e. variables with no producer.
docstring_summary: Return list of inputs, i.e. variables with no producer.
docstring_tokens: Return list of inputs i . e . variables with no producer .
function: def inputs(self, func=None, variable=True, const=True):
      """ Return list of inputs, i.e. variables with no producer."""
      ivars = []
      for v in self.vars.values():
        if v.producer != None: continue
        if func != None:
          used = False
          for op in v.consumers:
            if op.func == func:
              used = True
              break
          if not used: continue
        if v.data is None:
          if not variable: continue
        else:
          if not const: continue
        ivars.append(v)
      return ivars
function_tokens: def inputs ( self , func = None , variable = True , const = True ) : ivars = [ ] for v in self . vars . values ( ) : if v . producer != None : continue if func != None : used = False for op in v . consumers : if op . func == func : used = True break if not used : continue if v . data is None : if not variable : continue else : if not const : continue ivars . append ( v ) return ivars