[phung@archlinux ~]$ python -c “import torch; print(torch.version)”
1.0.0a0+ff608a9
[phung@archlinux ~]$

I am now using pytorch version 1.0 where the error had already been solved in version 0.40 in May 2018.