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: module must have its parameters and buffers on device cuda:0 (device_ids[0]) but found one of them on device: cuda:1 #28

Open
Mapzzone opened this issue Jul 7, 2022 · 2 comments

Comments

@Mapzzone
Copy link

Mapzzone commented Jul 7, 2022

how to solve it!!!!!thanks!

@Nuzhny007
Copy link

Change self.device = torch.device('cuda') to self.device = torch.device('cuda:1')

@Mapzzone
Copy link
Author

Mapzzone commented Oct 11, 2022 via email

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