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

NameError: name 'device' is not defined #3

Open
cyf0405 opened this issue Aug 11, 2023 · 1 comment
Open

NameError: name 'device' is not defined #3

cyf0405 opened this issue Aug 11, 2023 · 1 comment

Comments

@cyf0405
Copy link

cyf0405 commented Aug 11, 2023

plz how to solve this problem?

@mobeets
Copy link

mobeets commented Feb 16, 2024

Just set device = torch.device('cpu')

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