I want to run Libtorch (Pytorch C++ Frontend) in OpenFrameworks

╄→гoц情女王★ 提交于 2021-02-10 18:41:57

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!