Hi,
Are you using google colab by any chance? In that case, this is a known issue and it is tracked here: https://github.com/pytorch/pytorch/issues/29096 27
If not, how did you install pytorch and cuda on your machine if not?