assuming you have two lists of summaries of the first and second graphs, i.e.
summaries_first = [tf.summary.image("my_first_graph_input", image), ...]
summary_second = [tf.summary.scalar("my_second_graph_loss"), ..]
combine each list into one op total:
first_graph_summary_op = tf.summary.merge(summaries_first)
second_graph_summary_op = tf.summary.merge(summary_second)
Now, whenever you execute sess.run()
on each graph, evaluate its corresponding summary operator op and write it down.
source
share