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

Execution in CPU-only Mode #55

Open
malikeh1375 opened this issue Jul 3, 2021 · 3 comments
Open

Execution in CPU-only Mode #55

malikeh1375 opened this issue Jul 3, 2021 · 3 comments

Comments

@malikeh1375
Copy link

I am running the codes on macOS without NVIDIA GPU Graphic Card available. I wonder how I can run the scripts in CPU-only mode. What sections should I modify?

Thanks in advance!

@malikeh1375 malikeh1375 changed the title Exection in CPU-only Mode Execution in CPU-only Mode Jul 7, 2021
@doublequeens
Copy link

same question, any solution?

@FabienCharmet
Copy link

In pytorch you can call the .to() function to attach a device to another GPU / CPU.

tensor.to('cpu') should attach the tensor to the CPU of your computer. However, I believe that quite a lot of tensors should be reattched so I would recommend that you be careful with this.

@HernandezEduin
Copy link

You can set CUDA = int(False) in the run_[model].py.

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

4 participants