Solved by KFrank in post #6 
              
              
                Hi Mahsa! 

Thanks for the link to the layer code.  That clears things up. 
Yes, the two Module classes are indeed one and the same. 
Look specifically at this line in layers.py 
from torch.nn.modules.module import Module

So let me go back to a version of my first reply to you – there is 
a class t…