<p dir="auto">when i run imagenet example ; in tensorflow/models/image/imagenet/classify_image.py i add</p>
<ul dir="auto">
<li>w=tf.python.training.summary_io.SummaryWriter( sess.graph_def, FLAGS.model_dir, 'graph.pbtxt')</li>
<li>tf.train.SummaryWriter.flush(w)</li>
<li>tf.train.SummaryWriter.close(w)</li>
</ul>
<p dir="auto">output a file: events.out.tfevents.1452154974.ip-172-30-.-.<br>
when i open tensorboard , in tab  graph ,then i check top,tensorboard use cpu 100%; but wait a while ,tensorboard cpu use is down; tensorboard log a http 200:"GET /graph?run=%2Fopt%2Fpractice%2Ftf%2Fimagenet%2Flog%2F HTTP/1.1" 200 ;</p>
<p dir="auto">maybe event file so big cause http timeout??<br>
92M Jan  7 09:01 log/events.out.tfevents.1452154974.ip-172-30</p>
<p dir="auto">any one can help?</p>
<h3 dir="auto">Summary</h3>
<p dir="auto">Attempting to visualize the Inception v3 graph with TensorBoard results in an empty graph (after several minutes of loading).</p>
<p dir="auto"><em>Update: an earlier version of this issue indicated that the progress bar hung forever, but apparently, I just didn't wait long enough.</em></p>
<h3 dir="auto">Environment info</h3>
<p dir="auto">Operating System: OS X 10.11.3, Chrome 48.0.2564.116, Anaconda 1.2.2</p>
<p dir="auto">If installed from binary pip package, provide:</p>
<ol dir="auto">
<li>Which pip package you installed: <a href="https://storage.googleapis.com/tensorflow/mac/tensorflow-0.7.1-cp35-none-any.whl" rel="nofollow">https://storage.googleapis.com/tensorflow/mac/tensorflow-0.7.1-cp35-none-any.whl</a></li>
<li>The output from python -c "import tensorflow; print(tensorflow.<strong>version</strong>)".: <code class="notranslate">0.7.1</code></li>
</ol>
<h3 dir="auto">Steps to reproduce</h3>
<ol dir="auto">
<li>Downloaded and un-tar the <a href="http://download.tensorflow.org/models/image/imagenet/inception-2015-12-05.tgz" rel="nofollow">inception v3 model</a>. The graph protobuffer is in <code class="notranslate">/tmp/imagenet/classify_image_graph_def.pb</code>.</li>
<li>Run this code to dump the graph:</li>
</ol>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="    import os
    import os.path
    import tensorflow as tf
    from tensorflow.python.platform import gfile

    INCEPTION_LOG_DIR = '/tmp/inception_v3_log'

    if not os.path.exists(INCEPTION_LOG_DIR):
        os.makedirs(INCEPTION_LOG_DIR)
    with tf.Session() as sess:
        model_filename = '/tmp/imagenet/classify_image_graph_def.pb'
        with gfile.FastGFile(model_filename, 'rb') as f:
            graph_def = tf.GraphDef()
            graph_def.ParseFromString(f.read())
            _ = tf.import_graph_def(graph_def, name='')
        writer = tf.train.SummaryWriter(INCEPTION_LOG_DIR, graph_def)
        writer.close()"><pre class="notranslate">    <span class="pl-k">import</span> <span class="pl-s1">os</span>
    <span class="pl-k">import</span> <span class="pl-s1">os</span>.<span class="pl-s1">path</span>
    <span class="pl-k">import</span> <span class="pl-s1">tensorflow</span> <span class="pl-k">as</span> <span class="pl-s1">tf</span>
    <span class="pl-k">from</span> <span class="pl-s1">tensorflow</span>.<span class="pl-s1">python</span>.<span class="pl-s1">platform</span> <span class="pl-k">import</span> <span class="pl-s1">gfile</span>

    <span class="pl-v">INCEPTION_LOG_DIR</span> <span class="pl-c1">=</span> <span class="pl-s">'/tmp/inception_v3_log'</span>

    <span class="pl-k">if</span> <span class="pl-c1">not</span> <span class="pl-s1">os</span>.<span class="pl-s1">path</span>.<span class="pl-en">exists</span>(<span class="pl-v">INCEPTION_LOG_DIR</span>):
        <span class="pl-s1">os</span>.<span class="pl-en">makedirs</span>(<span class="pl-v">INCEPTION_LOG_DIR</span>)
    <span class="pl-k">with</span> <span class="pl-s1">tf</span>.<span class="pl-v">Session</span>() <span class="pl-k">as</span> <span class="pl-s1">sess</span>:
        <span class="pl-s1">model_filename</span> <span class="pl-c1">=</span> <span class="pl-s">'/tmp/imagenet/classify_image_graph_def.pb'</span>
        <span class="pl-k">with</span> <span class="pl-s1">gfile</span>.<span class="pl-v">FastGFile</span>(<span class="pl-s1">model_filename</span>, <span class="pl-s">'rb'</span>) <span class="pl-k">as</span> <span class="pl-s1">f</span>:
            <span class="pl-s1">graph_def</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-v">GraphDef</span>()
            <span class="pl-s1">graph_def</span>.<span class="pl-v">ParseFromString</span>(<span class="pl-s1">f</span>.<span class="pl-en">read</span>())
            <span class="pl-s1">_</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-en">import_graph_def</span>(<span class="pl-s1">graph_def</span>, <span class="pl-s1">name</span><span class="pl-c1">=</span><span class="pl-s">''</span>)
        <span class="pl-s1">writer</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-s1">train</span>.<span class="pl-v">SummaryWriter</span>(<span class="pl-v">INCEPTION_LOG_DIR</span>, <span class="pl-s1">graph_def</span>)
        <span class="pl-s1">writer</span>.<span class="pl-en">close</span>()</pre></div>
<ol dir="auto">
<li>Run tensorboard: <code class="notranslate">tensorboard --logdir /tmp/inception_v3_log</code></li>
<li>Navigate to graphs tab at <a href="http://0.0.0.0:6006/#graphs" rel="nofollow">http://0.0.0.0:6006/#graphs</a></li>
</ol>
<p dir="auto"><strong>Expected result:</strong> the graph<br>
<strong>Actual result:</strong> Empty graph screen (after several minutes of loading with no movement of the progress bar)</p>
<p dir="auto">A 91 MB file (same size as the graph protobuffer) called <code class="notranslate">events.out.tfevents.1456423256.[hostname]</code> is correctly saved to the log directory, so it seems that the graph is in there somewhere.</p>
<h3 dir="auto">What have you tried?</h3>
<ol dir="auto">
<li>Installing Python 2 pip version of TensorFlow 0.7.1 in a separate conda environment; same results.</li>
<li>Running <a href="https://github.com/tensorflow/tensorflow/blob/master/tensorflow/examples/tutorials/mnist/mnist_with_summaries.py">mnist_summaries_example</a>; graph is shown in TensorBoard properly, so this is a problem with the Inception model</li>
</ol>