Solved by justusschock in post #4 
              
              
                Let’s have a look at the underlying code: 
torch.save basically only calls torch._save 
Inside this function there is a function named persistent_id defined and beside other things the return values of this function are pickled. 
For torch.nn.Module this function does the following: 
if isinstance(o…