Mine is ubuntu18.0, and the environment is
pip install pytorch==1.8.0 torchvision==0.9.0 torchaudio==0.8.0 cudatoolkit=11.1 -c pytorch -c conda-forge
The problem is that when I was running fine yesterday, an error suddenly occurred today. After checking, I determined that there was no problem.
Finally, just restart ubuntu