@eminnguney if you are on JetPack 4, you can use the default version of CUDA that comes with JetPack and install the PyTorch <= 1.10 wheels for JetPack 4 from this thread: https://forums.developer.nvidia.com/t/pytorch-for-jetson/72048
JetPack 4.4 (L4T R32.4.3) / JetPack 4.4.1 (L4T R32.4.4) / JetPack 4.5 (L4T R32.5.0) / JetPack 4.5.1 (L4T R32.5.1) / JetPack 4.6 (L4T R32.6.1)
- Python 3.6 -
torch-1.10.0-cp36-cp36m-linux_aarch64.whl
Even on JetPack 5, it is not required to upgrade the CUDA version to CUDA 12 for PyTorch, it is built against the default version of CUDA that comes with JetPack already. If you are using the SD card image for Xavier NX, the CUDA Toolkit will have already been installed under /usr/local/cuda. Otherwise, SDK Manager can install it for you or you should just be able to do sudo apt-get install cuda-toolkit-*
Alternatively, if you continue having issues you can use the l4t-pytorch container which comes with PyTorch and torchvision pre-installed.