-
Notifications
You must be signed in to change notification settings - Fork 76
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
CUDA device error "module 'torch._C' has no attribute '_cuda_setDevice'" when running test.py #26
Comments
I have the same Issue! Do you found a solution? |
I have the same Issue! Did some body get the key to fix it? |
It took me three days but I found a fix for my computer: If you open the colab demo, you will see "# seems to be a colab bug, need to install previous version for pytorch". |
If you are trying to run the code locally with anaconda or connect to a local runtime with colab, you might need to change |
Hi !
Trying out test.py results in the following error:
Traceback (most recent call last): File "test.py", line 26, in <module> torch.cuda.set_device(0) File "C:\Users\natha\anaconda3\envs\ColorVid\lib\site-packages\torch\cuda\__init__.py", line 311, in set_device torch._C._cuda_setDevice(device) AttributeError: module 'torch._C' has no attribute '_cuda_setDevice'
I tried installing pytorch manually using their tool https://pytorch.org/get-started/locally/ (with CUDA 11.6) but that doesn't resolve the issue.
Can someone help me understand what is going on ? Thanks !!
The text was updated successfully, but these errors were encountered: