Closed tranvanh closed 2 years ago
I'm assuming you're using Windows Command Prompt or Powershell, but is it possible to restart the process by pressing enter on the screen where the logging stops? If it does, it's probably not a problem with tensorflow.dll or cppflow.
I'm assuming you're using Windows Command Prompt or Powershell, but is it possible to restart the process by pressing enter on the screen where the logging stops? If it does, it's probably not a problem with tensorflow.dll or cppflow.
Yes, I'm running the application on Windows using Visual studio. No key inputs are registered, nor does enter do anything in this case. The application gets stuck in dll initialization, not even getting to the execution of simple print in main.
The cppflow and everything works fine when I use it directly in a console application (loadModel inside main function). The problem starts if you were to create a DLL, which internally loads up a tf model, then import this DLL in some other console application (simple main function with nothing else but a hello world). In my case the logging gets stuck while initializing the DLL(loading the model), not getting to hello world execution.
Thank you for the information. I understand the configuration that causes this problem. I would like to have the code to reproduce it. Could you please publish the code you have tried on GitHub or somewhere?
Thank you for the information. I understand the configuration that causes this problem. I would like to have the code to reproduce it. Could you please publish the code you have tried on GitHub or somewhere?
I have prepared a dummy solution (run in Visual Studio), which should demonstrate the issue. Some basic steps are in the readme, but the solution should be runnable after cloning the repo with no setups needed. If anything is unclear, don't hesitate to hit me up :}.
The repo may seem large due to tensorflow library, which is also included in the repo.
@tranvanh
Can you check if the last changes fixed your error?
Closing due to lack of activity.
Hi, If cppflow is used inside a DLL library the application gets stuck without throwing any errors at Restoring SavedModel bundle. I'm trying to load a simple TF model inside the DLL, make a prediction, and then include this DLL in main.cpp.
The application gets stuck here without running anything beyond loadModel. Usually, the follow-up lines for successful load would be: