Solved by ptrblck in post #6 
              
              
                Sorry for being not clear enough. 
You won’t be able to copy the child modules directly to an nn.Sequential container, as all functional calls as well as locally defined modules in the original forward function will be missing. 
Also, removed contains the order of modules as they were created in the…