I read document convert file checkpont to file pb. See in bellow (This is code convert a CRNN model to Intermediate Representation (IR))
from tensorflow.python.framework import graph_io frozen = tf.graph_util.convert_variables_to_constants(sess, sess.graph_def, ['shadow/LSTMLayers/transpose_time_major']) graph_io.write_graph(frozen, '.', 'frozen_graph.pb', as_text=False)
In my your model i don't know how find this parameter :['shadow/LSTMLayers/transpose_time_major'] .
Link Copied
Hi Pham,
This parameter is name of the output node. Kindly check your graph to know the name of output node.
Best Regards,
Surya
For more complete information about compiler optimizations, see our Optimization Notice.