未验证 提交 35fcbbcb 编写于 作者: Q Qiao Longfei 提交者: GitHub

format code with pre-commit (#39)

上级 3f57cd0c
...@@ -19,4 +19,4 @@ npm run build ...@@ -19,4 +19,4 @@ npm run build
### Step 3: run ### Step 3: run
``` ```
python bin/visual_dl.py --port=8888 python bin/visual_dl.py --port=8888
``` ```
\ No newline at end of file
...@@ -52,7 +52,8 @@ static_file_path = "../visualdl/frontend/dist/" ...@@ -52,7 +52,8 @@ static_file_path = "../visualdl/frontend/dist/"
@app.route('/static/<path:filename>') @app.route('/static/<path:filename>')
def serve_static(filename): def serve_static(filename):
return send_from_directory(os.path.join(server_path, static_file_path), filename) return send_from_directory(
os.path.join(server_path, static_file_path), filename)
@app.route("/") @app.route("/")
......
...@@ -48,4 +48,3 @@ IM 与 Server 的关系是 ...@@ -48,4 +48,3 @@ IM 与 Server 的关系是
### Protobuf API ### Protobuf API
- 决定了底层的数据格式,protobuf 提供了序列化的公共界面 - 决定了底层的数据格式,protobuf 提供了序列化的公共界面
- SDK通过Protobuf API操作底层数据 - SDK通过Protobuf API操作底层数据
...@@ -159,7 +159,7 @@ histogram 需要得到tensor的分布,因此会把完整的tensor 的数值存 ...@@ -159,7 +159,7 @@ histogram 需要得到tensor的分布,因此会把完整的tensor 的数值存
] ]
``` ```
## graph ## graph
graph 会复杂一些,可能无法借用上述类型 graph 会复杂一些,可能无法借用上述类型
```javascript ```javascript
......
...@@ -6,4 +6,4 @@ ...@@ -6,4 +6,4 @@
# 前端增量 # 前端增量
# 前端采样 # 前端采样
\ No newline at end of file
from setuptools import setup from setuptools import setup
setup(name="visualdl", setup(
version="0.0.1", name="visualdl",
packages=['visualdl'], version="0.0.1",
include_package_data=True, packages=['visualdl'],
install_requires=[ include_package_data=True,
'flask>=0.12.1' install_requires=['flask>=0.12.1'],
], url='http://www.baidu.com/',
url='http://www.baidu.com/', license='Apache 2.0', )
license='Apache 2.0',
)
import log import log
__all__ = [ __all__ = ['log']
'log'
]
...@@ -52,6 +52,6 @@ private: ...@@ -52,6 +52,6 @@ private:
Storage storage_; Storage storage_;
}; };
} // namespace visualdl } // namespace visualdl
#endif // VISUALDL_BACKEND_LOGIC_IM_H #endif // VISUALDL_BACKEND_LOGIC_IM_H
...@@ -26,4 +26,4 @@ TEST_F(ImTester, AddRecord) { ...@@ -26,4 +26,4 @@ TEST_F(ImTester, AddRecord) {
ASSERT_EQ(im.storage().Find("tag0")->records_size(), 20UL); ASSERT_EQ(im.storage().Find("tag0")->records_size(), 20UL);
} }
} // namespace visualdl } // namespace visualdl
#ifndef VISUALDL_STORAGE_H #ifndef VISUALDL_STORAGE_H
#define VISUALDL_STORAGE_H #define VISUALDL_STORAGE_H
#include <string>
#include <time.h> #include <time.h>
#include <string>
#include "visualdl/backend/storage/storage.pb.h" #include "visualdl/backend/storage/storage.pb.h"
...@@ -66,6 +66,6 @@ private: ...@@ -66,6 +66,6 @@ private:
storage::Storage proto_; storage::Storage proto_;
}; };
} // namespace visualdl } // namespace visualdl
#endif // VISUALDL_STORAGE_H #endif // VISUALDL_STORAGE_H
...@@ -46,11 +46,7 @@ class TabletTester(unittest.TestCase): ...@@ -46,11 +46,7 @@ class TabletTester(unittest.TestCase):
scalar = self.tablet.as_float_scalar() scalar = self.tablet.as_float_scalar()
py_captions = ["train", "test"] py_captions = ["train", "test"]
step_ids = [10, 20, 30] step_ids = [10, 20, 30]
py_records = [ py_records = [[0.1, 0.2], [0.2, 0.3], [0.3, 0.4]]
[0.1, 0.2],
[0.2, 0.3],
[0.3, 0.4]
]
scalar.set_captions(py_captions) scalar.set_captions(py_captions)
for i in range(len(py_records)): for i in range(len(py_records)):
......
...@@ -6,4 +6,3 @@ new App({ ...@@ -6,4 +6,3 @@ new App({
titleName: 'VisualDL' titleName: 'VisualDL'
} }
}).attach(document.getElementById('root')); }).attach(document.getElementById('root'));
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册