By default, the train code runs on only 1 GPU. How can make it run on multiple GPUs?
I tried wrapping the frame_predictor, posterior and prior modules with DataParallel. Then I got the error, No such attribute init_hidden for DataParallel. So, I changed frame_predictor.init_hidden() to frame_predictor.module.init_hidden(). Then I got the error something like, trying to do backward a second time. Graph not saved.
Is it possible to make the code run on multiple GPUs?
By default, the train code runs on only 1 GPU. How can make it run on multiple GPUs?
I tried wrapping the frame_predictor, posterior and prior modules with
DataParallel. Then I got the error,No such attribute init_hidden for DataParallel. So, I changedframe_predictor.init_hidden()toframe_predictor.module.init_hidden(). Then I got the error something like,trying to do backward a second time. Graph not saved.Is it possible to make the code run on multiple GPUs?