I understand why it is installing the wrong version. The URL is for 1.8.0, but where can I find the correct URL to Substitute the URL?
Unfortunately, I did not find the correct URL anywhere, and from this link:PyTorch for JetPack 6.0DP
I realize the example commands are not 100 % useful.
So I downloaded The Pytorch binaries file : torch-2.2.0a0+6a974be.nv23.11-cp310-cp310-linux_aarch64.whl to my local machine (Ubuntu ) and through ssh (as I am accessing the board through headless mode) I transfer this file to Jetson Orin nano. Then uninstall torch-1.8.0 and install the torch-2.2.0a0+6a974be using
pip3 install torch-2.2.0a0+6a974be.nv23.11-cp310-cp310-linux_aarch64.whl
and install the torcvision v0.16.0.1 as per the normal installation steps suggested above.
Finally, the error vanishes and even verification test code results are as follows :
`2.2.0a0+6a974be # Torch Version
CUDA available: True
cuDNN version: 8904
/home/t-tech/Test/varification.py:5: UserWarning: The torch.cuda.DtypeTensor constructors are no longer recommended. It’s best to use methods such as torch.tensor(data, dtype=, device=‘cuda’) to create tensors. (Triggered internally at /opt/pytorch/pytorch/torch/csrc/tensor/python_tensor.cpp:83.)
a = torch.cuda.FloatTensor(2).zero_()
Tensor a = tensor([0., 0.], device=‘cuda:0’)
Tensor b = tensor([-0.7218, -0.1127], device=‘cuda:0’)
Tensor c = tensor([-0.7218, -0.1127], device=‘cuda:0’)
0.16.1 # Torchvision version`
@dusty_nv Thanks for your help.