In Windows 10, how to install/include LibTorch in Visual Studio Professional 2015?

(Mihail Dm) #1

Till now, I just downloaded the LibTorch from here

I tried to include it to my Visual Studio application project, but I still get errors with “file not found”.

Also, I need to have installed PyTorch 1.0 in Windows ? I downloaded the from Kaggle Kernels.

I need a complete tutorial with how I install/include LibTorch in Visual Studio.

(Pu Jiachen) #2

It will be easier if you use CMake. If you stick to building the project using VS, then instead of dragging the directory of libtorch to your project, you should add the include directory(should be in Project settings/C++) and the libraries (should be in Project settings/Linker) in the project settings.

(Song Zhu) #4

Could you please tell some details? Which directory should be added to settings/C++? And, which libraries should be added to settings/Linker?

(Pu Jiachen) #5