问题
All.
I want to run Libtorch (Pytorch C++ Frontend) in OpenFrameworks. LibTorch Site: https://pytorch.org/tutorials/advanced/cpp_frontend.html
If LibTorch runs in OpenFrameworks, it will be very powerful Deep Solution IDE (deep learning + GUI Production for OSX, Win10, & Linux).
But I can’t include <torch/torch.h>
in XCode.
At CMake method, CMakeLists.txt is like this:
cmake_minimum_required(VERSION 3.0 FATAL_ERROR)
project(dcgan)
find_package(Torch REQUIRED)
add_executable(dcgan dcgan.cpp)
target_link_libraries(dcgan “${TORCH_LIBRARIES}”)
set_property(TARGET dcgan PROPERTY CXX_STANDARD 11)
and installed libtorch for mac from: https://download.pytorch.org/libtorch/cpu/libtorch-macos-latest.zip
How can I include libtorch header in XCode ??
Thanks in advance.
来源:https://stackoverflow.com/questions/57105327/i-want-to-run-libtorch-pytorch-c-frontend-in-openframeworks