Solved by albanD in post #2 
              
              
                Hi, 
This is because we don’t have a method to clone nn.Modules. 
If you want another ref to the same module, use b = a 
If you want a shallow copy, you can use the copy module from python 
And if you want a deepcopy, you can use the deepcopy module from python.