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？