O'Reilly logo
  • Pandu Rao thinks this is interesting:

writer = tf.train.SummaryWriter('./my_graph', sess.graph)

From

Cover of TensorFlow for Machine Intelligence

Note

In newer versions of TensorFlow, use:
writer = tf.summary.FileWriter('./my_graph', sess.graph)