That was a mistake when re-writing the code, it did originally use enumerate.
Sadly enough the number of networks is indeterminate at code-writing time. I was assuming pytroch had some alterantive to for loops. There to seem to be some functionalities for distributing a list of processes between GPUs, so I might end up using that.
Thanks for your help