Open higher-hai opened 1 year ago
请问使用预测文件出现以下问题怎么解决呀?! RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cpu and cuda:0! (when checking argument for argument index in method wrapper__index_select)
You should put the tensor on the same device, GPU or CPU.
Thank you for your reply.Your model has helped me a lot!
请问使用预测文件出现以下问题怎么解决呀?! RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cpu and cuda:0! (when checking argument for argument index in method wrapper__index_select)