I found that my issue is due to import of sentencepiece.

  
      github.com/pytorch/pytorch
  
  
    



Issue: [Bug] Segmentation fault when importing sentencepiece (with v0.4.0) 29


	
	opened by ryonakamura
	on 2018-06-12
	
	
	closed by SsnL
	on 2018-07-20
	


The following snippet reproduces a bug.
import sentencepiece as spm
import torch.nn as nn
l = nn.Linear(10, 10).cuda(0)
error:
Segmentation fault (core dumped)
This bug doesn’t occur...


 	high priority


  
  
    
    
  
  


changing the import order fixed that