How to load breakpoint and output using C ++ for tensor flow?

I have a Tensorflow with python api and got this checkpoint model file:

model.ckpt-17763.data-00000-of-00001 model.ckpt-17763.index model.ckpt-17763.meta 

But I want to use the common C / C ++ library (.so file) when integrating into production. Therefore, I need to download this model file and draw a conclusion with C ++ code and compile it into a shared library. Is there any tutorial or sample for this?

+5
source share
1 answer

You can write C ++ code to download and use your schedule with instructions here .

You can use the files here to create a Cmake project with a tensor stream outside the TF repository and compile your library.

However, you still need .ckpt files next to your .so, I don’t know how to intergate them inside.

There are many questions about this on SO, as well as several tutorials (see the two cited in this answer ), but since tensor flow develops rapidly, they quickly become obsolete, and it is always a battle to make it work properly (it is feasible and becomes easier )

+2
source

Source: https://habr.com/ru/post/1268791/


All Articles