As far as I can tell there isn’t a way to do this easily: http://pytorch.org/docs/master/_modules/torch/nn/modules/container.html#ModuleList 69 .
Feel free to send a feature request to https://github.com/pytorch/pytorch/issues/ 7