Lists of modules are not handled in nn.Module, you need to either use nn.Sequential or nn.ModuleList. Check this thread 296 for more detalis on the reasoning and here 90 for the doc on nn.ModuleList, which is probably closer to what you want.