parameters: (self, m, recurse=True)
docstring: Returns a generator of module parameters
docstring_summary: Returns a generator of module parameters
docstring_tokens: Returns a generator of module parameters
function: def _get_parameters(self, m, recurse=True):
          """
          Returns a generator of module parameters
          """
  
          def model_parameters(m):
              ps = (
                  m._former_parameters.values()
                  if hasattr(m, "_former_parameters")
                  else m.parameters(recurse=False)
              )
              for p in ps:
                  yield p
  
          for m in m.modules() if recurse else [m]:
              for p in model_parameters(m):
                  yield p
function_tokens: def _get_parameters ( self , m , recurse = True ) : def model_parameters ( m ) : ps = ( m . _former_parameters . values ( ) if hasattr ( m , "_former_parameters" ) else m . parameters ( recurse = False ) ) for p in ps : yield p for m in m . modules ( ) if recurse else [ m ] : for p in model_parameters ( m ) : yield p