pytorch/test/expect/TestTensorBoard.test_scalar_new_style.expect
Siqi Yan 317ff429d3 [TB] Support writing new style scalar (#53496)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/53496

New style vs old style
b306651ab5/tensorboard/data_compat.py (L49-L53)

Writing in new style can help avoid the cost of migration
b306651ab5/tensorboard/data_compat.py (L46)

----

Test Plan:
buck run caffe2/test:tensorboard

 ---

Reviewed By: edward-io

Differential Revision: D26879076

fbshipit-source-id: 43cfe9e1ca52dad3efc10332715d39f1cc984862
2021-03-12 19:03:13 -08:00

13 lines
155 B
Plaintext

value {
tag: "test_scalar"
tensor {
dtype: DT_FLOAT
float_val: 1.0
}
metadata {
plugin_data {
plugin_name: "scalars"
}
}
}