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

torch.device("cuda:0")? #110

Closed
ford442 opened this issue Aug 29, 2022 · 1 comment
Closed

torch.device("cuda:0")? #110

ford442 opened this issue Aug 29, 2022 · 1 comment

Comments

@ford442
Copy link

ford442 commented Aug 29, 2022

I have been testing around loading models at float16 via CUDA and by cpu.
Is it best to use map_location=torch.device("cpu")?
Or can we use torch.device("cuda:0")? Was LPIPS trained on cpu making this a situaltion where map_location='cpu' is needed?

Thanks for your input! :)

@richzhang
Copy link
Owner

The model should load onto cpu by default, and then you should be able to load the model onto any device after

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