未验证 提交 dd0f9947 编写于 作者: 走神的阿圆's avatar 走神的阿圆 提交者: GitHub

Update LogReader.md

上级 1df3ab3c
......@@ -9,15 +9,13 @@ VisualDL可通过LogReader获取保存的日志中所有数据,帮助用户进
LogReader的初始化接口如下:
```python
class LogReader(logdir=None,
file_name='')
class LogReader(file_name)
```
#### 接口参数
| 参数 | 格式 | 含义 |
| --------------- | ------- | ------------------------------------------------------------ |
| logdir | string | 日志文件所在的路径,必填|
| file_name | string | 指定要读的日志文件名,必填|
| file_name | string | 指定要读的日志文件路径,必填|
#### 示例
......@@ -26,7 +24,7 @@ class LogReader(logdir=None,
```python
from visualdl import LogReader
reader = LogReader(logdir='./log', file_name='vdlrecords.1605533348.log')
reader = LogReader(file_name='./log/vdlrecords.1605533348.log')
```
### 2. 获取所有数据的tag信息
......@@ -53,4 +51,4 @@ tag: "Metrics/Training(Step): loss"
timestamp: 1605533356039
value: 3.1297709941864014
...
```
\ No newline at end of file
```
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册