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

tensorflow.dll location for running #192

Open JordanDavis-1 opened 2 years ago

JordanDavis-1 commented 2 years ago

It seems tensorflow.dll has to be in the system32 folder for my application to run correctly. Is there a way to configure cppflow to search from the .dll in the same directory as the application is in? The main reason is that my installer needs to put tensorflow.dll into system32 and it's getting flagged by AV software as malicious.

mwindowshz commented 2 years ago

Set in windows path were tensorflow dll is placed or you can set in visual studio in project properties->Debugging ->Enviroment PATH=%PATH%;c:\tensorflow\lib-cpu $(LocalDebuggerEnvironment)

JordanDavis-1 commented 2 years ago

Thank you! Will this just set the path on my machine during debugging? I'm looking for a solution so that my software on the client end can have that Path variable set and it finds tensorflow.dll in a specified folder by the installer that is not in sys32

serizba commented 1 year ago

Hi @JordanDavis-1

Sorry for not answering before. DId you manage to fix this?

With the new CMake, the compilation of programs should be easier. You can check again the docs to see an updated way of installing TF C API and cppflow.