-
Notifications
You must be signed in to change notification settings - Fork 153
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
AssertionError: CUDA is not available #1
Comments
Did you test your environment settings with some pytorch baselines, for example, the MNIST classification ? It seems that the CUDA isn't installed well. |
Thanks and I reinstalled pytorch and cuda, the problem is solved. Thanks |
It seems that you should check your device_id. It shouldn't be larger than the number of available GPUs. |
Really thanks a lot, indeed the problem is the device_id, your default is 7 but I have only 4 gpus on my server. |
I have cuda version 9.0.176 on my server, but still got the error when running train.py in the title, how to handle that?
Thanks
The text was updated successfully, but these errors were encountered: