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

关于运行多个模型都出现‘RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cpu! ’的报错 #158

Closed
xiangxin-oss opened this issue Dec 25, 2023 · 0 comments

Comments

@xiangxin-oss
Copy link

xiangxin-oss commented Dec 25, 2023

您好,我在用assist2015数据集跑akt、atdkt、simplekt和sparsekt等模型时都报了下述图片上的错误,求助如何

需要在具体代码后加to(device)。

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

1 participant