For importing your trained network to the C++ you need to export your network to be able to do so. After searching a lot and finding almost no information about it, it was clarified that we should use freeze_graph() to be able to do it.
Thanks to the new 0.7 version of Tensorflow, they added documentation of it.
After looking into documentations, I found that there are few similar methods, can you tell what is the difference between
tf.train.export_meta_graph as it has similar parameters, but it seems it can also be used for importing models to C++ (I just guess the difference is that for using the file output by this method you can only use
import_graph_def() or it's something else?)
Also one question about how to use
In documentations the
graph_def is given by
sess.graph_def but in examples in
freeze_graph() it is
sess.graph.as_graph_def(). What is the difference between these two?
This question is related to this issue.