


    print(module)




named_modules(memo=None, prefix='', remove_duplicate=True)
  Returns an iterator over all modules in the network, yielding
  both the name of the module as well as the module itself.

  Parameters:
     * **memo** (*Optional**[**Set**[**Module**]**]*) -- a memo to
       store the set of modules already added to the result

     * **prefix** (*str*) -- a prefix that will be added to the
       name of the module

     * **remove_duplicate** (*bool*) -- whether to remove the
       duplicated module instances in the result or not

  Yields:
     *(str, Module)* -- Tuple of name and module

  Note:

    Duplicate modules are returned only once. In the following
    example, "l" will be returned only once.

  Example:

     >>> l = nn.Linear(2, 2)
     >>> net = nn.Sequential(l, l)
     >>> for idx, m in enumerate(net.named_modules()):
     ...     print(idx, '->', m)
