Pytorch and torchvision compatability error

Hi , I installed pytorch (1.12.0a0+2c916ef.nv22.3) and torch vision(0.13.0) on Jetpack 5.0.2.

getting below error while running yolov5

RuntimeError: Couldn’t load custom C++ ops. This can happen if your PyTorch and torchvision versions are incompatible, or if you had errors while compiling torchvision from source. For further information on the compatible versions, check GitHub - pytorch/vision: Datasets, Transforms and Models specific to Computer Vision for the compatibility matrix. Please check your PyTorch version with torch.version and your torchvision version with torchvision.version and verify if they are compatible, and if not please reinstall torchvision so that it matches your PyTorch install.

Kindly help to resolve
thanks

Your torchvision version might be too new, so try to downgrade it to e.g. 0.12.

Please can u tell me how did u fix it …I am facing the same problem while running yolov7 …the version of torch is 1.8 and the version of torchvision is 0.9

torch==1.8.0 and torchvision==0.9.0 were both released on March, 4th, 2021, and should thus be compatible.