2021-07-23
Ubuntu cmakelist 添加链接libtorch解决Ubuntu cmakelist 添加链接libtorchC++工程中用到了libtorch库,在引用头文件时找不到torch.h#include <torch/torch.h>编译报错can’t find file xxx torch.h;cmakelist中需要链接到libtorch库set(CMAKE_PREFIX_PATH /home/xx/libtorch/share/cmake/Torch)find_pac
原创
2021-07-23 08:15:34 ·
516 阅读 ·
0 评论