Is there any difference between x.to('cuda') vs x.cuda()? Which one should I use?

is this true? what if you are using multiple GPUs? would pytorch allocate the right GPUs automatically without have to specify them if one uses .cuda()? @ptrblck

PS: asked similar question Run Pytorch on Multiple GPUs but didn’t get an answer to that (if .cuda() allocates to the right gpu automatically or if it has to be manually done all the time).