diff --git a/README.md b/README.md index b328482437209294f09afb83caff82699a0c3659..c15ee9b86d51e957a25670829bc69b4d5f01f90a 100644 --- a/README.md +++ b/README.md @@ -63,7 +63,7 @@ Packages of Paddle Serving support Centos 6/7 and Ubuntu 16/18, or you can use H ``` shell > python -m paddle_serving_app.package --get_model lac > tar -xzf lac.tar.gz -> python lac_web_service.py 9393 & +> python lac_web_service.py lac_model/ lac_workdir 9393 & > curl -H "Content-Type:application/json" -X POST -d '{"feed":[{"words": "我爱北京天安门"}], "fetch":["word_seg"]}' http://127.0.0.1:9393/lac/prediction {"result":[{"word_seg":"我|爱|北京|天安门"}]} ``` @@ -170,7 +170,7 @@ Here, `client.predict` function has two arguments. `feed` is a `python dict` wit ### About Efficiency - [How to profile Paddle Serving latency?](python/examples/util) -- [How to optimize performance?(Chinese)](doc/PERFORMANCE_OPTIM_CN.md) +- [How to optimize performance?](doc/PERFORMANCE_OPTIM.md) - [Deploy multi-services on one GPU(Chinese)](doc/MULTI_SERVICE_ON_ONE_GPU_CN.md) - [CPU Benchmarks(Chinese)](doc/BENCHMARKING.md) - [GPU Benchmarks(Chinese)](doc/GPU_BENCHMARKING.md) diff --git a/README_CN.md b/README_CN.md index 60fe26b8a45e16802fe66a100aab4919dc3d0512..f76dd21e67d7c275a87e5d5e35e2da4bce912514 100644 --- a/README_CN.md +++ b/README_CN.md @@ -64,7 +64,7 @@ Paddle Serving安装包支持Centos 6/7和Ubuntu 16/18,或者您可以使用HT ``` shell > python -m paddle_serving_app.package --get_model lac > tar -xzf lac.tar.gz -> python lac_web_service.py 9393 & +> python lac_web_service.py lac_model/ lac_workdir 9393 & > curl -H "Content-Type:application/json" -X POST -d '{"feed":[{"words": "我爱北京天安门"}], "fetch":["word_seg"]}' http://127.0.0.1:9393/lac/prediction {"result":[{"word_seg":"我|爱|北京|天安门"}]} ``` diff --git a/doc/PERFORMANCE_OPTIM.md b/doc/PERFORMANCE_OPTIM.md index eae128c40c0b5d40c0fc50346ca3f6e6c4c02eb5..651be1c139b5960fa287fc3e981f3039f9f098a2 100644 --- a/doc/PERFORMANCE_OPTIM.md +++ b/doc/PERFORMANCE_OPTIM.md @@ -16,5 +16,5 @@ Parameters for performance optimization: | Parameters | Type | Default | Description | | ---------- | ---- | ------- | ------------------------------------------------------------ | -| mem_optim | bool | False | Enable memory / graphic memory optimization | -| ir_optim | bool | Fasle | Enable analysis and optimization of calculation graph,including OP fusion, etc | +| mem_optim | - | - | Enable memory / graphic memory optimization | +| ir_optim | - | - | Enable analysis and optimization of calculation graph,including OP fusion, etc | diff --git a/doc/PERFORMANCE_OPTIM_CN.md b/doc/PERFORMANCE_OPTIM_CN.md index 1a2c3840942930060a1805bcb999f01b5780cbae..c35ea7a11c40ad2a5752d9add8fd8d9f8ddb2b64 100644 --- a/doc/PERFORMANCE_OPTIM_CN.md +++ b/doc/PERFORMANCE_OPTIM_CN.md @@ -16,5 +16,5 @@ | 参数 | 类型 | 默认值 | 含义 | | --------- | ---- | ------ | -------------------------------- | -| mem_optim | bool | False | 开启内存/显存优化 | -| ir_optim | bool | Fasle | 开启计算图分析优化,包括OP融合等 | +| mem_optim | - | - | 开启内存/显存优化 | +| ir_optim | - | - | 开启计算图分析优化,包括OP融合等 |