提交 ba2abc4a 编写于 作者: S superjom

Merge branch 'feature/support_pytorch_demo' of...

Merge branch 'feature/support_pytorch_demo' of github.com:ChunweiYan/VisualDL-1 into feature/support_pytorch_demo
...@@ -130,6 +130,7 @@ struct Scalar { ...@@ -130,6 +130,7 @@ struct Scalar {
void AddRecord(int id, T value) { void AddRecord(int id, T value) {
auto record = tablet_.AddRecord(); auto record = tablet_.AddRecord();
record.SetId(id); record.SetId(id);
time_t time = std::time(nullptr); time_t time = std::time(nullptr);
record.SetTimeStamp(time); record.SetTimeStamp(time);
auto entry = record.template AddData<T>(); auto entry = record.template AddData<T>();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册