How to install torch with cuda

I have torch version 2.1.0a0+41361538.nv23.6
when running command
import torch
it shows True, and i install
torchvision 0.16.2
by following this steps PyTorch for Jetson
It works thanks for the support.
But still facing issue how to use deepstream and tensor RT for object detection.