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
Error when running inference on CPU using C++ bindings: Not found: Container localhost does not exist #41226
Comments
Might not be the same cause as for you, but I just had a very similar issue with a self-built TF2.2. In my case it was caused by trying to load a saved model from a folder where I only put a saved_model.pb, but not the |
@TylerTheHumanCompiler Also i see you are using a very old version of tf, can you please upgrade to newer version and confirm if it helps resolve your issue. |
@Saduf2019 The variables folder exists and is populated. Can I provide you with additional information? As for the tf update: I've compiled from source and now have: and: |
@TylerTheHumanCompiler Please upgrade the tf version and see if you still face the issue as this is a very old version that does not have support [please use 1.15 or 2.x versions]. |
@Saduf2019 No, there isn't, because I'm not using tf 1.12, nor was I when I opened this issue. I don't know why I used the following code for installation:
|
The 'g' at the start seems to mean "git" or "group", the hash itself is the following part: |
@DouglasLivingstone thanks for shedding light on this. |
I don't work on TF anymore, sorry! |
Any updates on this? |
@TylerTheHumanCompiler Could you please try on latest stable version of tf 2.5 and let us know if this is still an issue.Thanks! |
This issue has been automatically marked as stale because it has no recent activity. It will be closed if no further activity occurs. Thank you. |
Closing as stale. Please reopen if you'd like to work on this further. |
System information
Describe the current behavior
Predicting works fine in Python, however when I try to run inference on CPU by using the C++ bindings I get the following error:
Describe the expected behavior
Being able to predict in C++ without issues.
Standalone code to reproduce the issue
Code is on pastebin.com to increase readability. Links:
Training the model in Python
C++ Header
C++ Code
cli_saved_model --dir ... --all output
Other info / logs
A similar issue was already posted on Stackoverflow, however with no answers.
Issue is persistent in TF2.2.
The text was updated successfully, but these errors were encountered: