提交 86f3c502 编写于 作者: Y Yu Yang

Fix CI

上级 cad8c713
...@@ -50,7 +50,7 @@ PaddlePaddle stores the topology and parameter separately. ...@@ -50,7 +50,7 @@ PaddlePaddle stores the topology and parameter separately.
with open('param.tar', 'w') as f: with open('param.tar', 'w') as f:
params.to_tar(f) params.to_tar(f)
``` ```
After we serialize the parameter and topology to two files, we could use that two files to set up an inference server. After we serialize the parameter and topology to two files, we could use that two files to set up an inference server.
...@@ -80,12 +80,12 @@ What `data_type` should be used is decided by the training topology. For example ...@@ -80,12 +80,12 @@ What `data_type` should be used is decided by the training topology. For example
* For image data, they are usually a plain dense vector, we flatten the image into a vector. The pixels of that image are usually normalized in `[-1.0, 1.0]` or `[0.0, 1.0]`(it depends on each neural network.). * For image data, they are usually a plain dense vector, we flatten the image into a vector. The pixels of that image are usually normalized in `[-1.0, 1.0]` or `[0.0, 1.0]`(it depends on each neural network.).
```text ```text
+-------+ +-------+
|243 241| |243 241|
|139 211| +---->[0.95, 0.95, 0.54, 0.82] |139 211| +---->[0.95, 0.95, 0.54, 0.82]
+-------+ +-------+
``` ```
* For text data, each word of that text is represented by a integer. The association map between word and integer is decided by the training process. A sentence is represented by a list of integer. * For text data, each word of that text is represented by a integer. The association map between word and integer is decided by the training process. A sentence is represented by a list of integer.
```text ```text
...@@ -95,7 +95,7 @@ What `data_type` should be used is decided by the training topology. For example ...@@ -95,7 +95,7 @@ What `data_type` should be used is decided by the training topology. For example
v v
23 942 402 19 +-----> [23, 942, 402, 19] 23 942 402 19 +-----> [23, 942, 402, 19]
``` ```
A sample request data of a `4x4` image and a sentence could be A sample request data of a `4x4` image and a sentence could be
```json ```json
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册