Repository: pytorch
Issue: [TensorBoard] Installed tensorboard 1.14.0, TestTensorBoardWriter.test_writer failed.
Labels: oncall: visualization

## 🐛 Bug

PyTorch supported TensorBoard 1.14.0, but TensorBoard 1.14.0 not support tensorboard.plugins.mesh.metadata.get_components_bitmask.

PyTorch 1.3.1 + TensorBoard 1.14.0, failed TestTensorBoardWriter.test_writer.
Because tensorboard.plugins.mesh.metadata.get_components_bitmask is supported form tensorboard 1.15.0 .

If you are not particular about supporting Tensorboard 1.14.0, would you like to update ImportError message?

original code https://github.com/pytorch/pytorch/blob/v1.3.1/torch/utils/tensorboard/__init__.py#L4-L5

```diff
 except ImportError:
     raise ImportError('TensorBoard logging requires TensorBoard with Python summary writer installed. '
-                      'This should be available in 1.14 or above.')
+                      'This should be available in 1.15 or above.')
 from .writer import FileWriter, SummaryWriter  # noqa F401
```

## To Reproduce

1. install tensorboard 1.14.0.  
```bash
pip install tensorboard==1.14.0
```
1. Run test.  
```bash
python3 test/test_tensorboard.py -- TestTensorBoardWriter.test_writer
```

## Expected behavior

```bash
root@6ed1da09866b:/workspace/pytorch# pip install tensorboard==1.14.0
Collecting tensorboard==1.14.0
  Using cached https://files.pythonhosted.org/packages/91/2d/2ed263449a078cd9c8a9ba50ebd50123adf1f8cfbea1492f9084169b89d9/tensorboard-1.14.0-py3-none-any.whl
...
Successfully installed tensorboard-1.14.0
root@6ed1da09866b:/workspace/pytorch# python3 test/test_tensorboard.py -- TestTensorBoardWriter.test_writer
/opt/conda/lib/python3.6/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:541: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  _np_qint8 = np.dtype([("qint8", np.int8, 1)])
/opt/conda/lib/python3.6/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:542: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  _np_quint8 = np.dtype([("quint8", np.uint8, 1)])
/opt/conda/lib/python3.6/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:543: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  _np_qint16 = np.dtype([("qint16", np.int16, 1)])
/opt/conda/lib/python3.6/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:544: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  _np_quint16 = np.dtype([("quint16", np.uint16, 1)])
/opt/conda/lib/python3.6/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:545: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  _np_qint32 = np.dtype([("qint32", np.int32, 1)])
/opt/conda/lib/python3.6/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:550: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  np_resource = np.dtype([("resource", np.ubyte, 1)])
Fail to import hypothesis in common_utils, tests are not derandomized
DEBUG>> SummaryWriter output: d5562a97-7fb8-4a42-8633-4c001578b24b
E
======================================================================
ERROR: test_writer (__main__.TestTensorBoardWriter)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test/test_tensorboard.py", line 251, in test_writer
    writer.add_mesh('my_mesh', vertices=v, colors=c, faces=f)
  File "/workspace/pytorch/torch/utils/tensorboard/writer.py", line 948, in add_mesh
    self._get_file_writer().add_summary(mesh(tag, vertices, colors, faces, config_dict), global_step, walltime)
  File "/workspace/pytorch/torch/utils/tensorboard/summary.py", line 664, in mesh
    components = metadata.get_components_bitmask([
AttributeError: module 'tensorboard.plugins.mesh.metadata' has no attribute 'get_components_bitmask'

----------------------------------------------------------------------
Ran 1 test in 0.641s

FAILED (errors=1)
```

## Environment

```
PyTorch version: 1.3.0a0+ee77ccb
Is debug build: No
CUDA used to build PyTorch: 10.1.243

OS: Ubuntu 16.04.6 LTS
GCC version: (Ubuntu 5.4.0-6ubuntu1~16.04.11) 5.4.0 20160609
CMake version: version 3.5.1

Python version: 3.6
Is CUDA available: Yes
CUDA runtime version: 10.1.243
GPU models and configuration:
GPU 0: GeForce RTX 2080 Ti
GPU 1: GeForce RTX 2080 Ti

Nvidia driver version: 418.67
cuDNN version: /usr/lib/x86_64-linux-gnu/libcudnn.so.7.6.3

Versions of relevant libraries:
[pip] numpy==1.17.2
[pip] torch==1.3.0a0+ee77ccb
[pip] torchvision==0.4.1a0+d94043a
[conda] blas                      1.0                         mkl
[conda] mkl                       2019.4                      243
[conda] mkl-service               2.3.0            py36he904b0f_0
[conda] mkl_fft                   1.0.14           py36ha843d7b_0
[conda] mkl_random                1.1.0            py36hd6b4f25_0
[conda] torch                     1.3.0a0+ee77ccb           dev_0    <develop>
[conda] torchvision               0.4.1                py36_cu101    pytorch
```


## Additional context

Add `tensorboard.plugins.mesh.metadata.get_components_bitmask` TensorBoard issue.
[Support undefined number of data points in the mesh. (#2373) ? tensorflow/tensorboard@5e5badc](https://github.com/tensorflow/tensorboard/commit/5e5badc666480d98d389f6ca46e0b4febc253df8)