NVIDIA GeForce 940MX torch.cuda.is_available() False

Hi I’ve just installed PyTorch through Anaconda distro in Windows 10, through “conda install pytorch torchvision cudatoolkit = 10.2 -c pytorch”. When i call torch.cuda.is_available() it returns False. I have an NVIDIA GeForce 940MX graphic card. Why is this happening? Should I download and run the cuda installation file directly? What version?