knowledgedefinednetworking/DRL-GNN

Can't use tensorboard

Ma-Ruimin opened this issue · 2 comments

I can't view tensorboard when I run this train_DQN.py(I uncommented the summary_writer line of code)
# summary_writer = tf.summary.create_file_writer(train_dir)

when I type in terminal tensorboard --logdir=Tensorboard/sample_DQN_agent
Click http://localhost:6006/ , can't view tensorboard using Chrome

Hi @Ma-Ruimin , you also need to uncomment the lines from

# if episode % evaluation_interval == 0:
These lines call the _write_tf_summary() function to write to the summary_writer file the values indicated within the function. Notice that it's a custom function and you might want to store the logs of other aspects of your model. You can find more information in https://www.tensorflow.org/api_docs/python/tf/summary

Thank you very much for replying to me!I successfully solved the problem.