You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 28, 2019. It is now read-only.
Repository navigation
This repository was archived by the owner on May 28, 2019. It is now read-only.
AttributeError: 'module' object has no attribute '_cuda_setDevice'
I'm using pytorch v0.1.12 per the docs.
When searching online, looks like a versioning problem with pytorch (interacting with CUDA) so this was unexpected. Any idea why this might be erroring? Tried uninstalling and reinstalling pytorch, but to no avail. Thanks!
Full stacktrace
Traceback (most recent call last):
File "train.py", line 72, in <module>
torch.cuda.set_device(args.gpu)
File "path/to/my/miniconda2/envs/voiceloop/lib/python2.7/site-packages/torch/cuda/__init__.py", line 161, in set_device
torch._C._cuda_setDevice(device)
AttributeError: 'module' object has no attribute '_cuda_setDevice'
Activity
dmikushin commentedon Jan 30, 2019
This is because you are trying to use an unsupported version of pytorch. Please make sure you are using exactly the version specified in the README.