I read some posts about ModuleList and all of them said that adding modules to ModuleList gives access to parameters of the Neural Network but in “Training a classifier” example of 60 mins pytorch tutorial the modules are not added to any ModuleList and still the parameters could be accessed using
optimizer = optim.SGD(net.parameters(), lr=0.001, momentum=0.9)
This is confusing. Please clarify how the parameters are accessible even though the modules have not been added to any ModuleList