Solved by tom in post #2 
              
              
                I would recommend to try a newer Visual Studio. PyTorch does use pretty much all of C++11, so one would expect to need at least VS2017 or so. 
Best regards 
Thomas