Torch not compiled with cuda enabled over Jetson Xavier Nx

I am having Jetson Xavier Nx with jetpack 4.6.

I am having PyTorch 1.8.0 and cuda 10.2
When I try to import pytorch, it successfully imports the pytorch module, But when I run the code for achieving stereo vision depth estimation it gives an error that → Torch not compiled with cuda enabled.

After that I have visited to → Previous PyTorch Versions | PyTorch

# CUDA 10.2
conda install pytorch==1.8.0 torchvision==0.9.0 torchaudio==0.8.0 cudatoolkit=10.2 -c pytorch

and applied the commands of it but the error remains the same.
Please tell me how to resolve this error as soon as possible.

Hi,

For Jetson, please install the PyTorch package from the below topic:

If you want a python v3.7 package, please build it from the source with the instructions in the same topic.

Thanks.