serizba / cppflow

Run TensorFlow models in C++ without installation and without Bazel
https://serizba.github.io/cppflow/
MIT License
779 stars 177 forks source link

cppflow model loading hangs unity #195

Open assistivai opened 2 years ago

assistivai commented 2 years ago

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?

serizba commented 2 years ago

@assistivai

Can you check if the last changes fixed your error?