load cppflow models in memory and make prediction later on them #259
Unanswered
Gilkovitch
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
// LOAD NN engine with CPPFLOW
//return engine ID for futur prediction
//engine filename is on dll folder
double __stdcall BinaCpp_loadNN(
const char* filename)
{
//loading the model each time causes overload.
//Either you load the model in global scope (outside of any class or main).
//The other option is to create a unique pointer which will be loaded once when first called.
//Declare unique pointer:
}
//Then use the model to make predictions:
//auto prediction = (*model)(input)
Beta Was this translation helpful? Give feedback.
All reactions