Creating log directory in tensorboard

后端 未结 2 480
慢半拍i
慢半拍i 2021-02-06 11:54

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 runn

2条回答
  •  抹茶落季
    2021-02-06 12:16

    This line needs to be in your code (the python script), as it seems you put it:

    summary_writer = tf.train.SummaryWriter('/tensorflow/logdir', sess.graph_def)

    This line, however, you have to call from linux (and not from within the script):

    tensorboard --logdir=tensorflow/logdir

    However, there is a lot more you need to do, before tensorboard really runs: How to create a Tensorflow Tensorboard Empty Graph

提交回复
热议问题