Torch and Torchvision are not compatible

with my spec in jetson using Jetpack 5.0.2

when i installed torch version 1.12.0a0+2c916ef.nv22.3 with torchvision 0.13.1 when i run my program get problem like this

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.

how solution for my probelm maybe can help me because i’m beginner

Dear @Naufal_Al ,
Please post your topic under relevant Jetson platform forum at Jetson & Embedded Systems - NVIDIA Developer Forums

This forum is intended to support DRIVE Orin platform

oke done

Hi,

Could you upgrade your environment to JetPack 6.1?

We saw such errors commonly in the JetPack 5 environment but not in JetPack 6.
It’s recommended to give it a try.

After reflashing the system, you can find the corresponding PyTorch and TorchVision below:

http://jetson.webredirect.org/jp6/cu126

Thanks.

1 Like

oke i will try JetPack 6.1 thanks for information