I am referring https://github.com/dennybritz/cnn-text-classification-tf as a reference. My goal is to build frozen graph from model files. I want to know input and output node in the signature to effectively build the frozen graph. I am printing the proto file from the graph definition using the following code.
saver=tf.train.import_meta_graph('some_path/model.ckpt.meta')
imported_graph = tf.get_default_graph()
graph_op = imported_graph.get_operations() with open('output.txt', 'w') as f:
for i in graph_op:
f.write(str(i))
The output I am getting is as follows: https://drive.google.com/drive/folders/1iZQqohx8jAWbSw7XV3vFJuLkaUp0Dt2s?usp=sharing
How do I know which is the output node and which is the input node there are plathora of input and outputs in this file?