Hello,
I have just installed torch-0.4.0t on a virtualenv. Following Pytorch tutorials I have  come to the point of running device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu") print(device)
and it prints out cpu instead of cuda:0. So I go checking with other commands like: print ('Available devices ', th.cuda.device_count()) and still it does not seem to find my GPU (prints out zero).
Command cat /usr/local/cuda/version.txt returns CUDA Version 9.0.176 and my GPU is a GeForce 940MX.
Tried to install Pytorch again but nothing changed. Could anyone give me a hand  please?