Thanks. I realized, however, that I have more problems with building libtorch from source than I originally thought ;). I am following the guide for Windows here: https://github.com/pytorch/pytorch#from-source 17, “python setup.py install” runs just fine and I get my libs and dlls in the build directory. However:


When I try to link my C++ app against torch.lib etc., I get a lot of unresolved symbols like exports would be missing from the lib. I can, however, successfully link against the libs from the official libtorch binaries, so I was wondering how these libs are built.


For some reason, torch.dll that gets created does not depend on caffe2_gpu.dll despite compiling with cuda and cudnn (observed using Dependancy walker).


Due to the complexity of the Pytorch project and lack of usable documentation on this topic, I do not seem to be able to find my problems here. I tried to tweak CMakeLists.txt in various ways like option(BUILD_TORCH “Build Torch” ON (was OFF), but without success.
Any hints?
Alex