How to configure conda environment for using GPU in Nvidia GTX 1650?

I have a NVIDIA GTX1650 (not 1650 Ti). Iam unable to use my GPU for training in my local system. I tried installing Cuda toolkit 11.2, but Py torch is not using GPU on the cuda environment iam using. in the same cuda environment tensorflow is able to use gpu. how to train pytorch model using gpu

Create a new and empty conda environment, install PyTorch with CUDA support by using the provided install commands from here, and make sure the NVIDIA driver is properly installed.