I’m not sure what the reason could be given that the cuda samples seem to work…
Could you double check that you installed the version of pytorch packaged with the same version of cuda as the one you have installed as well as all necessary packages (the conda cuda92 package for example if you use cuda 9.2).