And the error vanished with my code running normally… Does anyone know what’s the matter? And I never add such a check before when it could still run normally.
Happened to me too. But it seems to occur randomly. Once after 2 epochs, and once after 33. Also I tried executing the script inside gdb to get a stacktrace of the crash, it didn’t segfault for the entire training. Really confused here as well.
BTW, I am on 0.5.0a0+8fbab83 on a TitanX pascal with cuda 8.0
I have exact same problem as you. Just imported torch and torch.cuda in the console to see if cuda is available by using torch.cuda.is_available() and now no PyCharm project is working. Have you found a solution to this?
(EDIT)
Turns out the problem was my NVIDIA drivers, i switched back to Intel drivers and it worked fine (after I reinstalled conda and pytorch which was a drag.)
Hi,have you solved this problem?When I test a model after I’ve trained it, it always comes up randomly. If I restart the computer or test it a few more times, it maybe effective.But it won’t always work out.
Wow,it is so strange for it ,and it is same happen to me . When I ran my code that was OK before somedays , the error is : Process finished with exit code 139 (interrupted by signal 11: SIGSEGV).
And I just added some cuda check :
import torch
print(torch.cuda.is_available())
And the code could runing normally … It is so strange and I want to know whether anyone know why?