Tahir_Mujtaba:

have installed pytorch-gpu in pycharm . Do i need to install the cuda drivers separately before the installation of pytorch to use the gpu.


No, if you don’t install PyTorch from source then you don’t need to install the drivers separately. I.e., if you install PyTorch via the pip or conda installers, then the CUDA/cuDNN files required by PyTorch come with it already.