We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi, when running the test code on a CPU I got the following error: AttributeError: module 'torch._C' has no attribute '_cuda_setDevice'
AttributeError: module 'torch._C' has no attribute '_cuda_setDevice'
I am guessing that the code assumes that one has a GPU, but I don't see much reason for this if I am just using a pre-trained model for inference.
The text was updated successfully, but these errors were encountered:
Hi,
I guess it's because you only run the code on CPU. In that case, you can alter the code:
UFold/ufold_predict.py
Line 297 in 2b5fab2
device = torch.device("cpu")
to avoid this issue.
Please have a try.
Thanks
Sorry, something went wrong.
Hey, I've been getting the same error message and tried your solution but unfortunately it didn't change anything...
UFold/ufold_predict.py Line 297 in 2b5fab2 device = torch.device("cuda:1" if torch.cuda.is_available() else "cpu") to: device = torch.device("cpu")
to:
No branches or pull requests
Hi, when running the test code on a CPU I got the following error:
AttributeError: module 'torch._C' has no attribute '_cuda_setDevice'
I am guessing that the code assumes that one has a GPU, but I don't see much reason for this if I am just using a pre-trained model for inference.
The text was updated successfully, but these errors were encountered: