resently , I got a deep learning project from github , it  is about polar code decoder,(polar code : a channel code)，but when i try to train the model , i find that all the tensors are computing on the CPU,it is so slowly, so I want to make use of my GPU, I try to use the command:"  x=x.cuda()" but there will be a warning : all the tensors should be computed on one devise, it means that there are some tensors  that i haven’t paid attention to, so I want somebody can help me ! whether there exgist a comand that can move all tensors to GPU at once, oh~, I have already tried  this:
“dd=locals()
d_tmp=[value.cuda() for key,value in dd.items() if type(value)==torch.Tensor]”
thank you!!!very much!