Tensorboard not displaying graph

cijerezg: <p>I take the example from <a href="https://pytorch.org/tutorials/intermediate/tensorboard_tutorial.html" rel="noopener nofollow ugc">https://pytorch.org/tutorials/intermediate/tensorboard_tutorial.html</a> and copy it. I run it but tensorboard does not show any graph (see attached image). I also run it with my own code and get exactly the same.</p>
<p>To show it I use:<br>
tensorboard --logdir=data/ --host localhost --port 8088</p>
<p>Because simply using tensorboard --logdir does not work.</p>
<p>Using writer.add_image() works though. So, could you shed me some light on how to get the graph?</p>
<p><div class="lightbox-wrapper"><a class="lightbox" href="https://discuss.pytorch.org/uploads/default/original/2X/9/916be7d82ab7828cdc9534ac189ddde91f17d092.png" data-download-href="https://discuss.pytorch.org/uploads/default/916be7d82ab7828cdc9534ac189ddde91f17d092" title="tensorboard"><img src="https://discuss.pytorch.org/uploads/default/optimized/2X/9/916be7d82ab7828cdc9534ac189ddde91f17d092_2_690x364.png" alt="tensorboard" data-base62-sha1="kKsq2qJlJxg4TExX9NFn5zQhsoW" width="690" height="364" srcset="https://discuss.pytorch.org/uploads/default/optimized/2X/9/916be7d82ab7828cdc9534ac189ddde91f17d092_2_690x364.png, https://discuss.pytorch.org/uploads/default/optimized/2X/9/916be7d82ab7828cdc9534ac189ddde91f17d092_2_1035x546.png 1.5x, https://discuss.pytorch.org/uploads/default/optimized/2X/9/916be7d82ab7828cdc9534ac189ddde91f17d092_2_1380x728.png 2x" data-dominant-color="FBF4EE"><div class="meta"><svg class="fa d-icon d-icon-far-image svg-icon" aria-hidden="true"><use href="#far-image"></use></svg><span class="filename">tensorboard</span><span class="informations">1917×1014 60.4 KB</span><svg class="fa d-icon d-icon-discourse-expand svg-icon" aria-hidden="true"><use href="#discourse-expand"></use></svg></div></a></div></p>

ptrblck: <p>We have similar issues <a href="https://discuss.pytorch.org/t/graphs-not-showing-in-tensorboard-pytorch-1-2/53543">here</a> and <a href="https://discuss.pytorch.org/t/seeking-help-the-model-does-not-appear-in-the-graphs-with-tensorboard/53572">here</a></p>
<p>CC <a class="mention" href="/u/lanpa">@lanpa</a>, <a class="mention" href="/u/orionr">@orionr</a> who might know, what’s going on.</p>

lanpa: <p>Hi, which version of pytorch are you using? Have you run step 3?</p>
<pre><code class="lang-auto">writer.add_graph(net, images)
writer.close()
</code></pre>
<p>Any errors or warnings?</p>
<p>Based on your description, you might have changed the logging dir. Also make sure that you are passing the correct parameters.</p>

cijerezg: <p>I am using pytorch 1.2. Yes, that was a mistake in my description but the logging dir is the same. In fact, you can know it’s the same because if it weren’t, then I wouldn’t get anything but I still get the images from writer.add_image()</p>

one_way: <p>same issue to me. I run the demo from official tutorial <a href="https://pytorch.org/tutorials/intermediate/tensorboard_tutorial.html" rel="nofollow noopener">VISUALIZING MODELS, DATA, AND TRAINING WITH TENSORBOARD</a>, nothing changed, no graph emerged.<br>
(anaconda 3 environment: python3.7 pytorch 1.2.0 torchvision 0.4.0 tensorboard 1.14.0  )</p>

pytorch_learner: <p>Same issue here with python3.7.4, pytorch 1.2.0, torchvision 0.4.0, tensorboard 1.14.0</p>

ptrblck: <p>Could you try the nightly build as described in <a href="https://github.com/pytorch/pytorch/issues/24157#issuecomment-536168609" rel="nofollow noopener">this issue</a>?</p>

pytorch_learner: <p><a class="mention" href="/u/ptrblck">@ptrblck</a> Updating Pytorch to nightly build resolved the issue. Thank you very much for the suggestion.</p>