I have a prototype of GraphDef that I am importing with tf.import_graph_def . Ops can be added at the end of the chart as follows:
final_tensor = tf.import_graph_def(graph_def, name='', return_elements=['final_tensor']) new_tensor = some_op(final_tensor)
But I want to add Ops at the beginning of the graph, so essentially the first Op in graph_def should take the output of my Op as input, how to do it?
source share