How to graph tf.keras model in Tensorflow-2.0?
问题 I upgraded to Tensorflow 2.0 and there is no tf.summary.FileWriter("tf_graphs", sess.graph) . I was looking through some other StackOverflow questions on this and they said to use tf.compat.v1.summary etc . Surely there must be a way to graph and visualize a tf.keras model in Tensorflow version 2. What is it? I'm looking for a tensorboard output like the one below. Thank you! 回答1: According to the docs, you can use Tensorboard to visualise graphs once your model has been trained. First,