mxnet-notebooks icon indicating copy to clipboard operation
mxnet-notebooks copied to clipboard

Can't import tensorboard summary and FileWriter

Open kevinthesun opened this issue 9 years ago • 7 comments

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

kevinthesun avatar Feb 13 '17 00:02 kevinthesun

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

zihaolucky avatar Feb 13 '17 06:02 zihaolucky

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.

zihaolucky avatar Feb 13 '17 06:02 zihaolucky

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.

kevinthesun avatar Feb 13 '17 07:02 kevinthesun

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.

zihaolucky avatar Feb 13 '17 07:02 zihaolucky

OK. Thank you!

kevinthesun avatar Feb 13 '17 08:02 kevinthesun

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...

geoalgo avatar Nov 04 '17 12:11 geoalgo

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

zihaolucky avatar Nov 05 '17 03:11 zihaolucky