I was installing tensorboard using pip install tensorboard
. All worked fine
I run my network and the writer also worked fine
with tf.Session() as sess:
writer = tf.summary.FileWriter("pathtofolder", sess.graph)
print(sess.run(h))
writer.close()
now I wanted to see in tensorboard how it learned
I inserted
import tensorflow, tensorboard
tensorboard --logdir /pathtofolder
and received the error message. NameError: name 'logdir' is not defined
You should execute the command on terminal/cmd.
Open your terminal/cmd and run:
tensorboard --logdir ./PATH_TO_THE_EVENT_FILES
If you want to run Tensorboard
on python file see here: