I was able to “fix” the std error with:

  
    
    
    Compiler report "'std': ambiguous symbol" error under Visual C++ 2017 C++
  
  
    I download the pre-build distribution from https://pytorch.org/get-started/locally/(Stable-Windows-LibTorch-CUDA 10.0 version),I extract the zip file and add the inc/lib path to my VC2017 project,I write below code to test LibTorch: 
#include <torch/script.h> 
#include   
#include   
int main() 
{ 
std::shared_ptrtorch::jit::script::Module model = torch::jit::load(“tmodel.pt”); 
std::cout << “Hello World!\n”; 
return 0; 
} 
but compile failed,the compiler report below errors: 
Error	C2872	‘std’:…
  


Note that using nightly removes this error as well