简体   繁体   中英

Tensorboard - moduleNotFound: no module named tensorflow.tensorboard

I have got Tensorflow 1.3.0 saved in this path: C:\\Users............\\Anaconda3\\envs\\tensorflow-1.3.1

and in this folder i had install tensorboard by conda.

When I launch

tensorboard --logdir=/tensorflow-1.3.1/tensorflow/contrib/tensorboard

Give me an error: moduleNotFound: no module named tensorflow.tensorboard

Which is the problem?

You shouldn't launch the actual tensorboard, but rather you want tensorboard to read the logs that you have created during you session.

So somewhere in your script you created a path, for example

logs_path = "./tmp/"

where the logs from the training are saved through the writer ran in your session:

writer = tf.train.SummaryWriter(logs_path, graph=tf.get_default_graph())

Then to visualise the values from the logs, you launch tensorflow and give it the path to the logs.

 tensorboard --logdir=./tmp --port 6006

You can then open your browser with the specified port where the outcome should be.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM