Command is torch.cuda.is_available() I tried reinstalling pytorch on my laptop and the gpu I am using is gtx 1050 ti,os ->windows 10,platform -> Anaconda(Jupyter) and I also tried different commands then also my problem is not solved 
Screenshot (146).png1920×1080 139 KB