'cppflow model loading hangs unity

I'm trying to load a tensorflow graph model using cppflow in c++. I am able to load the model when I define the model loading globally in a standalone applicaiton:

cppflow::model model(std::string(model_path));
int main() {
   ...
}

But, when I build this to create the dll and call that dll from unity (c#), the whole unity application hangs. Is there another way to do so or am I doing something wrong?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source