Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't import tensorboard summary and FileWriter #32

Open
kevinthesun opened this issue Feb 13, 2017 · 7 comments
Open

Can't import tensorboard summary and FileWriter #32

kevinthesun opened this issue Feb 13, 2017 · 7 comments

Comments

@kevinthesun
Copy link
Contributor

In https://github.com/dmlc/mxnet-notebooks/blob/master/python/tutorials/understanding_vanish_gradient.ipynb:

from tensorboard import summary
from tensorboard import FileWriter

Fails

I tested it on Amazon Ubuntu.
@zihaolucky

@zihaolucky
Copy link
Member

Did you installed tensorboard already? And could you provide the error log/info for me? Thank you!

@zihaolucky
Copy link
Member

The tensorboard package isn't packed with MXNet yet, so we have to install tensorboard to use it, we're working on providing a pip/wheel solution for this.

@kevinthesun
Copy link
Contributor Author

kevinthesun commented Feb 13, 2017

ImportError Traceback (most recent call last)
in ()
3 import os
4 import numpy as np
----> 5 from tensorboard import summary
6 from tensorboard import FileWriter
7

ImportError: No module named tensor board

Tensorflow is installed. I checked dict-package under python2.7 and found tensorboard is also installed under tensorflow/python.

Then I tried "from tensorflow.python.tensorboard import summary", summary was imported.
However, I couldn't find a way to import FileWriter.

@zihaolucky
Copy link
Member

Sorry, it's my bad.

The tensorboard in the tutorial is an ongoing project to make a stand-alone version of tensorboard for MXNet, where we strip the tensorboard out of TensorFlow. https://github.com/dmlc/tensorboard

It's an independent project, and currently, we have to build it from source.

@kevinthesun
Copy link
Contributor Author

OK. Thank you!

@geoalgo
Copy link

geoalgo commented Nov 4, 2017

Could you add the instructions on how to install the custom tensorboard version?
Otherwise, maybe the notebook should be removed then? It is confusing to have a notebook which can only run after building a custom tensorboard...

@zihaolucky
Copy link
Member

@geoalgo I suppose this particular notebook requires dmlc-tensorboard.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants