Solved by ptrblck in post #4 
              
              
                It’s hard to tell what might be the root cause, as it was working before and I don’t know what has changed. 
I don’t believe there is a PyTorch-related fix, as the error points towards a setup issue. 
You could try to test other environments (e.g. create a new conda env, reinstall PyTorch, and check…