My code is as follows:

image.png879×190 13.3 KB

as it shows the training process for net1 and net2 is  uncorrelated, so  I  want   use  devices=1 to  train  net1  and  devices=2 to train net2  parallel .
How  can  I  realize it?