chaoyuaw / pytorch-coviar

Compressed Video Action Recognition
https://www.cs.utexas.edu/~cywu/projects/coviar/
GNU Lesser General Public License v2.1
502 stars 126 forks source link

multiple GPUS #31

Open Rookielike opened 6 years ago

Rookielike commented 6 years ago

thanks for providing your code .when training,gpu id was set to 0 and 1.but it was occupied in my server.so i change ids to 1and 2 ,one error occured :all tensors must be on devices[0]. then i added os.environ['CUDA_VISIBLE_DEVICES'] = "3,6" ,it didn't work How can i solve this problem? thanks for your reading default

chaoyuaw commented 6 years ago

Have you tried to only use --gpus to specify the GPUs that you want to use, but not changing CUDA_VISIBLE_DEVICES? Would that work?

SkySailing commented 5 years ago

https://discuss.pytorch.org/t/how-to-solve-the-problem-of-runtimeerror-all-tensors-must-be-on-devices-0/15198