I installed the pytorch 1.0 by
conda install pytorch-nightly -c pytorch, and test the code in LOADING A PYTORCH MODEL IN C++ from * Tutorials and got a ld error in this part:
and in commend line using
gcc test.cpp -I/.../anaconda3/lib/python3.6/site-packages/torch/lib/include -L/..../anaconda3/lib/python3.6/site-packages/torch/lib/ -ltorch
Which part I was wrong?
Would you please kindly tell me how you have installed the
libtorch? I mean that can you tell me the Cmake file?
haha, i recognize you, i ask you some question some days ago, now also find the method to using pytorch1.0 by C++，Fist, How to build the libtorch? Do you succeed??@XiaXuehai
You can find the
CMakeLists.txt file with other install instructions here.
I have build the libtorch1.0 using the VS2017 Generator by CMake in the Windows10, it’s OK now. emmm, Why this installing style not written in the tutorial?? I try a lot to figure it out…@ptrblck
@XiaXuehai 这是我总结windows版的编译方式 ：https://zhuanlan.zhihu.com/p/52806730
Good to hear it’s working!
Would you expect to have a link to the install doc in part 3 of the tutorial or at which point did you miss the install requirements?