code: def children_and_parameters(m:nn.Module):
      "Return the children of `m` and its direct parameters not registered in modules."
      children = list(m.children())
      children_p = sum([[id(p) for p in c.parameters()] for c in m.children()],[])
      for p in m.parameters():
          if id(p) not in children_p: children.append(ParameterModule(p))
      return childref children_and_parameters(m:nn.Module):
      "Return the children of `m` and its direct parameters not registered in modules."
      children = list(m.children())
      children_p = sum([[id(p) for p in c.parameters()] for c in m.children()],[])
      for p in m.parameters():
          if id(p) not in children_p: children.append(ParameterModule(p))
      return children
docs: Return the children of `m` and its direct parameters not registered in modules.