-
Notifications
You must be signed in to change notification settings - Fork 185
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fatal error: tensorflow/cc/ops/array_ops.h: No such file or directory #40
Comments
Hi, what example are you building? You probably need to build the shared library instead of the static library. The static library is kind of limited to provide just enough functionality for the inference using an existing network. Also you don't need |
Closing for inactivity. |
I'm getting something similar with the static build. Trying to build a semi-experimental tf-based network evaluation backend (no training). Looks like a header in tf_cc references this header, which isn't itself included.
|
Hi, have you tried the shared library version? The static library is very limited. |
There should be a difference between "limited" and "internally consistent". No I haven't tried the dynamic build, it seemed like substantially more investment of time and disk space. Maybe I'll come back to it in the future, but in the short-term I'm not especially interested in getting the TF backend to work (currently focusing on porting the BLAS backend that exists elsewhere). Having said that, I'd still be happy to provide debugging assistance here. I'm hoping that merely some cmake setting can be tweaked to include the proper dependencies of |
Sure, unfortunately, that is not something I decide. The static library is just built using tensorflow/contrib/makefile, so unless this is changed upstream, there is not much I could do about it. If you don't require CUDA, than the shared library is not much bigger than the static one and the only thing you need to do extra is to install Bazel (or use Docker). See the sizes of the docker images (note that those include the full operating system including CUDA): |
Ah, sorry for that misunderstanding on my part. That's not bad. Maybe I'll come back to it soon! Thanks for the very quick replies, especially on such a busy repository. |
Hi, thanks for this very convenient way to compile tensorflow C++ library repo. I successfully build tensorflow static which is the default option. But when I build example, it says this error:
The codes are simply the example, I paste my CMakeLists.txt here for investigation:
Any suggestion will be many appreciated!!!!!
The text was updated successfully, but these errors were encountered: