Hi, there exists torch.nn. ModuleList in pytorch. You need to instantiate your model N times and append them to that list. Then, you can operate as if a python list were.
If you use python lists itself, you will be able to call each model but they won’t be properly registered in the parent module.