Giter Site home page Giter Site logo

Comments (2)

dgl547437235 avatar dgl547437235 commented on April 28, 2024

image
在部分情况下,可以cmake生成项目,但在编译阶段,出现了如上的错误,cmake选项如下图
image

from forward.

yuanzexi avatar yuanzexi commented on April 28, 2024

@dgl547437235

  1. 关于第一个问题,CMAKE 的 message 有给提示,使用 libtorch 时,需要指定到 libtorch 目录下的 share/cmake ,例如 -DCMAKE_PREFIX_PATH=path\to\libtorch\share\cmake
    image

  2. 关于第二个问题:在 Windows 平台下,由于 PyTorch 自身 Python 版本库无法支持 Libtorch 编译,目前不支持 BUILD_PYTHON_LIB for Forward-Torch,所以需要关掉 BUILD_PYTHON_LIB,从而根据上述问题一的回答使用 CMAKE_PREFIX_PATH=/path/to/libtorch/share/cmake 来指定 libtorch 目录。

这里附上 cmake-gui 使用前的 add_entry。
image

from forward.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.