title: How can I give a name to each module in ModuleList?
body: <p>I have the following component in my model:</p>
  
  <pre><code>feedfnn = []
  for task_name, num_class in self.tasks:
      if self.config.nonlinear_fc:
          ffnn = nn.Sequential(OrderedDict([
              ('dropout1', nn.Dropout(self.config.dropout_fc)),
              ('dense1', nn.Linear(self.config.nhid * self.num_directions * 8, self.config.fc_dim)),
              ('tanh', nn.Tanh()),
              ('dropout2', nn.Dropout(self.config.dropout_fc)),
              ('dense2', nn.Linear(self.config.fc_dim, self.config.fc_dim)),
              ('tanh', nn.Tanh()),
              ('dropout3', nn.Dropout(self.config.dropout_fc)),
              ('dense3', nn.Linear(self.config.fc_dim, num_class))
          ]))
      else:
          ffnn = nn.Sequential(OrderedDict([
              ('dropout1', nn.Dropout(self.config.dropout_fc)),
              ('dense1', nn.Linear(self.config.nhid * self.num_directions * 8, self.config.fc_dim)),
              ('dropout2', nn.Dropout(self.config.dropout_fc)),
              ('dense2', nn.Linear(self.config.fc_dim, self.config.fc_dim)),
              ('dropout3', nn.Dropout(self.config.dropout_fc)),
              ('dense3', nn.Linear(self.config.fc_dim, num_class))
          ]))
      feedfnn.append(ffnn)
  self.ffnn = nn.ModuleList(feedfnn)
  </code></pre>
  
  <p>When I print my model, I get the description of the above component as:</p>
  
  <pre><code>(ffnn): ModuleList (
  (0): Sequential (
    (dropout1): Dropout (p = 0)
    (dense1): Linear (4096 -&gt; 512)
    (dropout2): Dropout (p = 0)
    (dense2): Linear (512 -&gt; 512)
    (dropout3): Dropout (p = 0)
    (dense3): Linear (512 -&gt; 2)
  )
  (1): Sequential (
    (dropout1): Dropout (p = 0)
    (dense1): Linear (4096 -&gt; 512)
    (dropout2): Dropout (p = 0)
    (dense2): Linear (512 -&gt; 512)
    (dropout3): Dropout (p = 0)
    (dense3): Linear (512 -&gt; 3)
  )
  (2): Sequential (
    (dropout1): Dropout (p = 0)
    (dense1): Linear (4096 -&gt; 512)
    (dropout2): Dropout (p = 0)
    (dense2): Linear (512 -&gt; 512)
    (dropout3): Dropout (p = 0)
    (dense3): Linear (512 -&gt; 3)
  )
  )
  </code></pre>
  
  <p>Can I put a specific name like <code>(task1): Sequential</code>, <code>(task2): Sequential</code> instead of <code>(0): Sequential</code>, <code>(1): Sequential</code>?</p>