Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于“inference.py” #50

Open
higher-hai opened this issue Feb 18, 2023 · 2 comments
Open

关于“inference.py” #50

higher-hai opened this issue Feb 18, 2023 · 2 comments

Comments

@higher-hai
Copy link

请问使用预测文件出现以下问题怎么解决呀?!
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)

@FengLi-ust
Copy link
Collaborator

You should put the tensor on the same device, GPU or CPU.

@higher-hai
Copy link
Author

You should put the tensor on the same device, GPU or CPU.

Thank you for your reply.Your model has helped me a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants