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

run on devices without cuda enabled PyTorch #2

Open
aadityacs opened this issue Mar 6, 2022 · 1 comment
Open

run on devices without cuda enabled PyTorch #2

aadityacs opened this issue Mar 6, 2022 · 1 comment

Comments

@aadityacs
Copy link

The code by default assumes that it has a cuda enabled version of PyTorch. This is not so in cases such as on a MacBook. Maybe changing the .cuda() call to .to(device) where device is set based on cuda availability might make the code run without any hiccup on such devices.

@Avocadoooooo
Copy link

Thanks 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