I am referring to this thread of discusion - The difference in usage between nn.ModuleList and python list
In this thread smth said
When you ask for
model.parameters()
, the parameters of layers insidenn.ModuleList
will be returned. But if it is regular list, we dont look inside the list fornn.Module
layers.