How did you install pytorch? If you have installed it by building from source, it might be possible that there are some libs missing or wrongly linked. Try installing from a binary source in that case. Here is one such source:

  
    
    
    Segmentation fault in torch.svd even for small matrices 
  
  
    I do not know what dependencies are wrong. 
I have collected pip wheels from here: torchvision, torch 0.4.0 
and installed them. They do not give such segmentation faults.