Skip to content
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

#import <tensorflow/core/public/session.h> error #9

Open
wenchengxucool opened this issue Feb 27, 2018 · 3 comments
Open

#import <tensorflow/core/public/session.h> error #9

wenchengxucool opened this issue Feb 27, 2018 · 3 comments

Comments

@wenchengxucool
Copy link

'tensorflow/core/public/session.h' file not found

@hollance
Copy link
Owner

Sounds like you didn't set up the header search paths in the project settings (or did so incorrectly), so Xcode cannot find the TensorFlow header files.

@wenchengxucool
Copy link
Author

actually, I did this as following:

  • You'll need to add the library at tensorflow/contrib/lite/gen/lib/libtensorflow-lite.a to your linking build stage(target->building phases->link binary with libraries), and add tensorflow/contrib/lite/gen/lib to the building settings-> Library Search Paths setting.

  • The building settings-> Header Search paths needs to contain the root folder of tensorflow:

    • tensorflow/contrib/lite/downloads
    • tensorflow/contrib/lite/downloads/flatbuffers/include

I don't know if there is any difference between your settings and mine~

thank!!

@hollance
Copy link
Owner

My article was written before TF-Lite existed, so it's possible the instructions are not 100% correct for this new version of TensorFlow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants