Giter Site home page Giter Site logo

free(): invalid pointer about forward HOT 9 CLOSED

tencent avatar tencent commented on April 29, 2024
free(): invalid pointer

from forward.

Comments (9)

yuanzexi avatar yuanzexi commented on April 29, 2024

@BoBoer You could try to use -DCMAKE_PREFIX_PATH=/usr/local/lib/libtorch instead of -DTORCH_CMAKE_PATH. And you'd better not to include "fwd_torch/torch_engine/torch_infer.h", which is used internally. You could follow https://github.com/Tencent/Forward/tree/master/demo/fwd_cpp to use Fwd-Cpp

from forward.

BoBoer avatar BoBoer commented on April 29, 2024

It has been done according to the above instructions, but the problem still exists.

from forward.

yuanzexi avatar yuanzexi commented on April 29, 2024

Which libtorch did you use? Could you provide the link address of your libtorch libraries?

from forward.

BoBoer avatar BoBoer commented on April 29, 2024

https://download.pytorch.org/libtorch/cpu/libtorch-cxx11-abi-shared-with-deps-1.3.1%2Bcpu.zip

from forward.

yuanzexi avatar yuanzexi commented on April 29, 2024

Did you clean the CMakeCache.txt in the build directory? If you build with -DBUILD_PYTHON_LIB=ON first, and then you build with -DBUILD_PYTHON_LIB=OFF. In this case, if you didn't clean CMakeCache.txt, the cmake project would use the python-torch libraries instead of the libtorch you specified. This may result in some conflicts.

from forward.

BoBoer avatar BoBoer commented on April 29, 2024

I have clean the CMakeCache.txt. I run rm -rf * in the build directory before cmake.

from forward.

yuanzexi avatar yuanzexi commented on April 29, 2024

Could you please provide your GCC version and ld version?

from forward.

github-actions avatar github-actions commented on April 29, 2024

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

from forward.

github-actions avatar github-actions commented on April 29, 2024

This issue was closed because it has been stalled for 5 days with no activity.

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.