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

module 'torch._C' has no attribute '_cuda_setDevice' #74

Open
princebhatia09 opened this issue Jun 8, 2018 · 4 comments
Open

module 'torch._C' has no attribute '_cuda_setDevice' #74

princebhatia09 opened this issue Jun 8, 2018 · 4 comments

Comments

@princebhatia09
Copy link

princebhatia09 commented Jun 8, 2018

No description provided.

@KupynOrest
Copy link
Owner

Could you please specify the error and the command you use to run the code?

@princebhatia09
Copy link
Author

(base) C:\Users\prince.bhatia\Desktop\DeblurGAN-master\DeblurGAN-master>python t
est.py --dataroot C:\Users\prince.bhatia\Desktop\DeblurGAN-master\DeblurGAN-mast
er\blur --model test --dataset_mode single --learn_residual
Traceback (most recent call last):
File "test.py", line 13, in
opt = TestOptions().parse()
File "C:\Users\prince.bhatia\Desktop\DeblurGAN-master\DeblurGAN-master\options
\base_options.py", line 61, in parse
torch.cuda.set_device(self.opt.gpu_ids[0])
File "C:\Users\prince.bhatia\AppData\Local\Continuum\anaconda3\lib\site-packag
es\torch\cuda_init_.py", line 262, in set_device
torch._C._cuda_setDevice(device)
AttributeError: module 'torch._C' has no attribute '_cuda_setDevice'

This is the error i received

@RRRzhou
Copy link

RRRzhou commented Sep 17, 2018

I'm having the same problem !
Have you solved it ?

@freedomofme
Copy link

I found solution, look at here:
junyanz/pytorch-CycleGAN-and-pix2pix#67

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