Sirs:
I saw in your initial(first thread) code:
if not isinstance(module, nn.ModuleList) and not isinstance(module,nn.Sequential) and module != self.pModel:

Can you(or someone) please explain to me why a module cannot be instance of nn.ModuleList, nn.Sequential or self.pModel in order to obtain the weights of each layer?
I am new to Pytorch and still wasn’t able to figure one this out yet!  Many thanks for your help!