I use the following commond to install pytorch:
conda install pytorch torchvision -c soumith
I thought this commond will install proper pytorch version for me before,I checked the pytorch version,its version is 0.2.0.There may be some problems with it.Thanks,you give me the inspiration to solve this problem.