-
Notifications
You must be signed in to change notification settings - Fork 82
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
RuntimeError: CUDA error: an illegal memory access was encountered #24
Comments
Hi, this seems to be caused by some other problems(from the environments), could you provide more information? |
Thank you ! This is my conda and torch version configuration:
|
The batch_size in the train.py has been transferred to 1, My machine is:2080Ti |
Hi, can you tell me which code raise the error? seems like the environment is okay. |
Yeah ! "batch = tuple(t.to(device) for t in batch)" , I've now reinstalled the Ubantu environment, May I ask if your VERSION of CUDA must be 8? |
I have been stuck with this problem for 3 days and have ruled out memory overflow and batch_size. I couldn't resist reinstalling the system yesterday, and I noticed that the CUDA version didn't fit. How many VERSIONS of CUDA do you have? |
I suspect the problem is that CudA10.0 doesn't match the torch in the code |
No, but you need to ensure your torch build to fit for the CUDA version. |
soga. I think I know what the problem is where. My CUDA version follows your requirements, but Cuda may not match the torch |
Cuda loaded 8.0 has collapsed, I'm going to reinstall the system and press the new CUDA and Torch versions |
Hello! I think I finally found the problem, but I don’t know how to solve it. The problem appears in the train.py file: The error suggested is:RuntimeError: CUDA error: an illegal memory access was encountered. I suspect that the parameter range of Model1 is different from the size of batch, Could you please help me explain the structure of model1, thank you very much!!! |
I have found the problem. It is because my CUDA environment is not well installed. So much trouble for you~ |
In the process of train, encountered such a mistake, where is the problem? "RuntimeError: CUDA error: an illegal memory access was encountered"
The text was updated successfully, but these errors were encountered: