I just tried removing this package and reinstalling it into my conda environment, which did not resolve this error.  conda list | grep torch gives:
(myenv) user@host ~$ conda list | grep torch
pytorch                   1.0.1           py3.6_cuda9.0.176_cudnn7.4.2_2    pytorch
torchvision               0.1.8                    py36_0 

Based on another suggestion on this forum, I also tried going into the directory on my $PYTHONPATH and doing ls | grep torch, which didn’t return anything. I’m not sure if this would be related?
I’m using Ubuntu 16.04.6.