Skip to content

Pointers for the minimum needed to embed inference in a c++ app ? #6833

Answered by gitced
gitced asked this question in Q&A
Discussion options

You must be logged in to vote

Finally found the time to test everything, it was quite straight forward and i have to say it's kind of amazing to be able to use an lm with a exe that is 1Mb.

It's really hard to believe !

So just in case any absolute newbie like me wonders what's the bare minimum needed for an inference, here's what i did to compile and use simple.cpp in VS.
1/ create an empty project
2/ add a cpp file and copy paste the content of simple.cpp
3/ add an include dir in your project and copy those headers:

4/ add a lib dir in your project and copy those libs:

5/ declare everything in your project properties (compiler/linker additional directories), compile, done.

I'm was quite surprised to discover tha…

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@gitced
Comment options

Comment options

You must be logged in to vote
1 reply
@gitced
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by gitced
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants