未验证 提交 5a8f87af 编写于 作者: Y Yibing Liu 提交者: GitHub

Fix doc format of pantheon (#78)

上级 db196491
......@@ -70,7 +70,7 @@ pantheon.Teacher.start\_knowledge\_service(feed\_list, schema, program, reader\_
- **program (fluid.Program):** - Inference Program of the teacher model.
- **reader\_config (dict):** - The config for data reader. Support all the three types of generators used by [fluid.io.PyReader](https://www.paddlepaddle.org.cn/documentation/docs/en/api/io/PyReader.html) and [fluid.io.DataLoader](https://www.paddlepaddle.org.cn/documentation/docs/en/api/io/DataLoader.html#dataloader), and their configs contain the key-value pair of the generator type and a generator object, plus other necessary argument pairs. See the following:
- 1) sample generator:
1) **sample generator:**
```
reader_config={"sample_generator": some_sample_generator,
......@@ -78,13 +78,13 @@ pantheon.Teacher.start\_knowledge\_service(feed\_list, schema, program, reader\_
# drop_last set to True by default
```
- 2) sample list generator:
2) **sample list generator:**
```
reader_config={"sample_list_generator": some_sample_list_generator}
```
- 3) batch generator:
3) **batch generator:**
```
reader_config={"batch_generator": some_batch_genrator}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册