serizba / cppflow

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

libtensorflow2 (or cppflow) should be updated ? #119

Closed flaviu22 closed 3 years ago

flaviu22 commented 3 years ago

I have tried to compile your excellent library, cppflow.

I am using Win10, 64 bit, VS2017.

I have downloaded https://storage.googleapis.com/tensorflow/libtensorflow/libtensorflow-cpu-windows-x86_64-2.4.0.zip and I have deployed on my HOME folder: C:\Users\u724776\libtensorflow2

And I have tried to compile cppflow, but I got:

1>------ Build started: Project: example, Configuration: Debug x64 ------
1>cl : Command line warning D9002: ignoring unknown option '-fno-omit-frame-pointer'
1>cl : Command line warning D9002: ignoring unknown option '-fsanitize=address'
1>main.cpp
1>C:\Users\u724776\libtensorflow2\include\tensorflow/c/tf_tensor.h(22): fatal error C1083: Cannot open include file: 'tensorflow/c/c_api_macros.h': No such file or directory
1>Done building project "example.vcxproj" -- FAILED.
2>------ Skipped Build: Project: ALL_BUILD, Configuration: Debug x64 ------
2>Project not selected to build for this solution configuration 
========== Build: 0 succeeded, 1 failed, 1 up-to-date, 1 skipped ==========

which tell me that cppflow is not fit with libtensorflow2, am I right ?

image

seungtaek94 commented 3 years ago

@flaviu22

I think that is tensroflow issue

U can download linux version and copy header file to ur windows tf c_api folder.

flaviu22 commented 3 years ago

I have make it to run by using libtensorflow-cpu-windows-x86_64-2.5.0. Thank to this issue: https://github.com/tensorflow/tensorflow/issues/46343