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

直接就用cpu训练,把我的电脑cpu给爆了 >_< #39

Open
chenxs1427 opened this issue Nov 19, 2020 · 2 comments
Open

直接就用cpu训练,把我的电脑cpu给爆了 >_< #39

chenxs1427 opened this issue Nov 19, 2020 · 2 comments

Comments

@chenxs1427
Copy link

为啥不默认GPU的

@Thresh-Frazier
Copy link

尝试下在train.py中修改:
device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")

@2212240289
Copy link

试下在train.py中修改: device = torch.device("cuda:0" if torch.cuda.is_available() else "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

3 participants