<p dir="auto">It would be nice to have a complete, end-to-end working example using TensorBoard.  In addition, some of the documentation appears to be incorrect.</p>
<p dir="auto">Possible Incorrect Documentation:<br>
<a href="http://tensorflow.org/how_tos/summaries_and_tensorboard/index.md" rel="nofollow">http://tensorflow.org/how_tos/summaries_and_tensorboard/index.md</a></p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/755710/11324647/bc5560d8-9105-11e5-8293-ddd36cf7c946.png"><img width="731" alt="screenshot 2015-11-22 10 42 18" src="https://cloud.githubusercontent.com/assets/755710/11324647/bc5560d8-9105-11e5-8293-ddd36cf7c946.png" style="max-width: 100%;"></a></p>
<p dir="auto">A concise, completely coded example may help. Note, more detail is shown here, but it's still have hard to grasp the full picture.  A complete coded example may help.</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="
...
sess.run(init)

# Build the summary operation based on the TF collection of Summaries.
tf.train.write_graph(sess.graph_def, './tenIrisSave/logsd','graph.pbtxt')

tf.scalar_summary(&quot;Accuracy:&quot;, tf_accuracy)
tf.histogram_summary('weights', tf_weight)
tf.histogram_summary('bias', tf_bias)
tf.histogram_summary('softmax', tf_softmax)
tf.histogram_summary('accuracy', tf_accuracy)


summary_op = tf.merge_all_summaries()
summary_writer = tf.train.SummaryWriter('./tenIrisSave/logs',sess.graph_def)

# This will not work. You need the full path.
# tensorboard --logdir=./tenIrisSave/   # BAD!
# tensorboard --logdir=$(pwd)/tenIrisSave/  # Good!
...
for i in range(100):
   ...
    summary_str = sess.run(summary_op,feed_dict={tf_in: x_test, tf_softmax_correct: y_test_onehot})
    summary_writer.add_summary(summary_str, i)

"><pre class="notranslate">...
<span class="pl-s1">sess</span>.<span class="pl-en">run</span>(<span class="pl-s1">init</span>)

<span class="pl-c"># Build the summary operation based on the TF collection of Summaries.</span>
<span class="pl-s1">tf</span>.<span class="pl-s1">train</span>.<span class="pl-en">write_graph</span>(<span class="pl-s1">sess</span>.<span class="pl-s1">graph_def</span>, <span class="pl-s">'./tenIrisSave/logsd'</span>,<span class="pl-s">'graph.pbtxt'</span>)

<span class="pl-s1">tf</span>.<span class="pl-en">scalar_summary</span>(<span class="pl-s">"Accuracy:"</span>, <span class="pl-s1">tf_accuracy</span>)
<span class="pl-s1">tf</span>.<span class="pl-en">histogram_summary</span>(<span class="pl-s">'weights'</span>, <span class="pl-s1">tf_weight</span>)
<span class="pl-s1">tf</span>.<span class="pl-en">histogram_summary</span>(<span class="pl-s">'bias'</span>, <span class="pl-s1">tf_bias</span>)
<span class="pl-s1">tf</span>.<span class="pl-en">histogram_summary</span>(<span class="pl-s">'softmax'</span>, <span class="pl-s1">tf_softmax</span>)
<span class="pl-s1">tf</span>.<span class="pl-en">histogram_summary</span>(<span class="pl-s">'accuracy'</span>, <span class="pl-s1">tf_accuracy</span>)


<span class="pl-s1">summary_op</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-en">merge_all_summaries</span>()
<span class="pl-s1">summary_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-s">'./tenIrisSave/logs'</span>,<span class="pl-s1">sess</span>.<span class="pl-s1">graph_def</span>)

<span class="pl-c"># This will not work. You need the full path.</span>
<span class="pl-c"># tensorboard --logdir=./tenIrisSave/   # BAD!</span>
<span class="pl-c"># tensorboard --logdir=$(pwd)/tenIrisSave/  # Good!</span>
...
<span class="pl-k">for</span> <span class="pl-s1">i</span> <span class="pl-c1">in</span> <span class="pl-en">range</span>(<span class="pl-c1">100</span>):
   ...
    <span class="pl-s1">summary_str</span> <span class="pl-c1">=</span> <span class="pl-s1">sess</span>.<span class="pl-en">run</span>(<span class="pl-s1">summary_op</span>,<span class="pl-s1">feed_dict</span><span class="pl-c1">=</span>{<span class="pl-s1">tf_in</span>: <span class="pl-s1">x_test</span>, <span class="pl-s1">tf_softmax_correct</span>: <span class="pl-s1">y_test_onehot</span>})
    <span class="pl-s1">summary_writer</span>.<span class="pl-en">add_summary</span>(<span class="pl-s1">summary_str</span>, <span class="pl-s1">i</span>)
</pre></div>
<p dir="auto">The complete example can be seen here:<br>
<a href="https://gist.github.com/mchirico/bcc376fb336b73f24b29">https://gist.github.com/mchirico/bcc376fb336b73f24b29</a></p>
<p dir="auto">Agreed. The example needs to be cleaned up. The point is to give the user a complete working example that can be run and verified.</p>
<p dir="auto">pip install --upgrade <a href="https://storage.googleapis.com/tensorflow/windows/gpu/tensorflow_gpu-0.12.0rc1-cp35-cp35m-win_amd64.whl" rel="nofollow">https://storage.googleapis.com/tensorflow/windows/gpu/tensorflow_gpu-0.12.0rc1-cp35-cp35m-win_amd64.whl</a></p>
<p dir="auto">Collecting tensorflow-gpu==0.12.0rc1 from <a href="https://storage.googleapis.com/tensorflow/windows/gpu/tensorflow_gpu-0.12.0rc1-cp35-cp35m-win_amd64.whl" rel="nofollow">https://storage.googleapis.com/tensorflow/windows/gpu/tensorflow_gpu-0.12.0rc1-cp35-cp35m-win_amd64.whl</a><br>
<strong>HTTP error 404 while getting</strong> <a href="https://storage.googleapis.com/tensorflow/windows/gpu/tensorflow_gpu-0.12.0rc1-cp35-cp35m-win_amd64.whl" rel="nofollow">https://storage.googleapis.com/tensorflow/windows/gpu/tensorflow_gpu-0.12.0rc1-cp35-cp35m-win_amd64.whl</a><br>
Could not install requirement tensorflow-gpu==0.12.0rc1 from <a href="https://storage.googleapis.com/tensorflow/windows/gpu/tensorflow_gpu-0.12.0rc1-cp35-cp35m-win_amd64.whl" rel="nofollow">https://storage.googleapis.com/tensorflow/windows/gpu/tensorflow_gpu-0.12.0rc1-cp35-cp35m-win_amd64.whl</a> because of error 404 Client Error: Not Found for url: <a href="https://storage.googleapis.com/tensorflow/windows/gpu/tensorflow_gpu-0.12.0rc1-cp35-cp35m-win_amd64.whl" rel="nofollow">https://storage.googleapis.com/tensorflow/windows/gpu/tensorflow_gpu-0.12.0rc1-cp35-cp35m-win_amd64.whl</a></p>