I have been debugging this issue for a while now. I have developed an LSTM encoder decoder model which I plan to deploy in C++.
Having saved the model in the .pb file format, I am able to import the model and data and deploy it within python. However, when I try to import the graph using the C++ API, the function TF_GraphImportGraphDef()
returns an error code of TF_NOT_FOUND.
I suspect, this is because I am using the beam search approach and the symbols for the op GatherTree
is not contained with the tensorflow.dll/lib
that I generated using Bazel on windows.
I would like to know if anyone has come across this issue before or have any solutions for this issue.
Would linking to the _beam_search_ops.dll
be a possible solution? I tried that too using the TF_LoadLibrary()
function available in the c_api.h
. However, I was unable to load the library.
Any inputs will be appreciated. Also, I am working with tensorflow version 1.14.