[TB] Support writing new style scalar (#53496)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/53496
New style vs old style
https://github.com/tensorflow/tensorboard/blob/b306651ab5baa6d362326464a703463b4683b265/tensorboard/data_compat.py#L49-L53
Writing in new style can help avoid the cost of migration
https://github.com/tensorflow/tensorboard/blob/b306651ab5baa6d362326464a703463b4683b265/tensorboard/data_compat.py#L46
----
Test Plan:
buck run caffe2/test:tensorboard
---
Reviewed By: edward-io
Differential Revision: D26879076
fbshipit-source-id: 43cfe9e1ca52dad3efc10332715d39f1cc984862