Hey,
I’m using windows and I  encountered the same problem.
I’m using:

python:  3.9.7
torch: 1.10.1+cu102
torchvision: 0.11.2+cu102

EDIT
I’ve upgraded CUDA to 11.1 and everything is fine now. Still strange the error in CUDA 10.2