Creating log directory in tensorboard
问题 I am trying to learn how to use tensorboard and I would like to have it run in my program. I do not understand how to create a log directory. These are the lines I have for running tensorboard. summary_writer = tf.train.SummaryWriter('/tensorflow/logdir', sess.graph_def) tensorboard --logdir=tensorflow/logdir The error message that I got was Cannot assign to operator 回答1: This line needs to be in your code (the python script), as it seems you put it: summary_writer = tf.train.SummaryWriter('