Solved by glaringlee in post #2 
              
              
                @Aaditya_Chandrasekha 
We have a simple instruction in the comment here: 
‘https://github.com/pytorch/pytorch/blob/cd0724f9f1b57dae12be2c3fc6be1bd41210ee88/torch/csrc/api/include/torch/nn/modules/container/modulelist.h#L11’ 
We have tests here, it contains more examples. 
‘https://github.com/Shahria…