Repository: pytorch
Issue: Can not get pytorch working with tensorboard
Labels: triaged,module: tensorboard

## 🐛 Bug

<!-- A clear and concise description of what the bug is. -->

## To Reproduce

Steps to reproduce the behavior:

I follow the tutorials in pytorch.org It occurs error：TensorBoard logging requires TensorBoard version 1.15 or above, but I have install TensorBoard already. When I run `tensorboard --logdir=runs`,it work normally.I use `from torch.utils.tensorboard import SummaryWriter` at the beginning, but it occurs the error as same as above. Then I use` from tensorboardX import SummaryWriter`The bug confuses me for days. Is there any alternative to tensorboard？

Here is the code:


<!-- If you have a code sample, error messages, stack traces, please provide it here as well -->
```
#from torch.utils.tensorboard import SummaryWriter
from tensorboardX import SummaryWriter
writer = SummaryWriter('runs/fashion_mnist_experiment_1')
#get some random training images
dataiter = iter(trainloader)
images , labels = dataiter.next()
#create grid of images
img_grid = torchvision.utils.make_grid(images)
matplotlib_imshow(img_grid,one_channel=True)
writer.add_image('four_fashion_images',img_grid)
writer.add_graph(net, images)
writer.close()
```
## Error
```

ImportError                               Traceback (most recent call last)
<ipython-input-12-d38808675cb4> in <module>
----> 1 writer.add_graph(net, images)
      2 writer.close()

~\anaconda3\envs\torch2\lib\site-packages\tensorboardX\writer.py in add_graph(self, model, input_to_model, verbose)
    791 
    792         """
--> 793         from torch.utils.tensorboard._pytorch_graph import graph
    794         self._get_file_writer().add_graph(graph(model, input_to_model, verbose))
    795 

~\anaconda3\envs\torch2\lib\site-packages\torch\utils\tensorboard\__init__.py in <module>
      2 from distutils.version import LooseVersion
      3 if not hasattr(tensorboard, '__version__') or LooseVersion(tensorboard.__version__) < LooseVersion('1.15'):
----> 4     raise ImportError('TensorBoard logging requires TensorBoard version 1.15 or above')
      5 del LooseVersion
      6 del tensorboard
```

ImportError: TensorBoard logging requires TensorBoard version 1.15 or above
<!-- A clear and concise description of what you expected to happen. -->

## Environment


```

 - PyTorch Version (e.g., 1.0):1.6
 - OS (e.g., Linux):Window 10 
 - How you installed PyTorch (`conda`, `pip`, source):conda
 - Build command you used (if compiling from source):
 - Python version:3.6
 - CUDA/cuDNN version:10.2
 - GPU models and configuration:
 - Any other relevant information:
tensorboard               2.3.0                    pypi_0    pypi
tensorboard-plugin-wit    1.7.0                    pypi_0    pypi
tensorboardx              2.1                      pypi_0    pypi
tensorflow                1.2.1                    py36_0    defaults
pytorch                   1.6.0           py3.6_cuda102_cudnn7_0    pytorch
torchvision               0.7.0                py36_cu102    pytorch
future                    0.18.2                   py36_1    defaults
protobuf                  3.12.3           py36h33f27b4_0    defaults

## Additional context

<!-- Add any other context about the problem here. -->