Allow sequential modules in module list (#16882)
Summary:
Fix for https://github.com/pytorch/pytorch/issues/16845
Pull Request resolved: https://github.com/pytorch/pytorch/pull/16882
Differential Revision: D14007746
Pulled By: eellison
fbshipit-source-id: d7918275cc1de6a67320619c3203463f66783343