Merge pull request !204 from 徐永飞/r1.2tags/v1.2.0
| @@ -40,7 +40,7 @@ MindSpore Serving provides the following functions: | |||
| ## Installation | |||
| MindSpore Serving depends on the MindSpore training and inference framework. Therefore, install [MindSpore](https://gitee.com/mindspore/mindspore/blob/master/README.md#installation) and then MindSpore Serving. | |||
| MindSpore Serving depends on the MindSpore training and inference framework. Therefore, install [MindSpore](https://gitee.com/mindspore/mindspore/blob/r1.2/README.md#installation) and then MindSpore Serving. | |||
| ### Installing Serving | |||
| @@ -67,7 +67,7 @@ Perform the following steps to install Serving: | |||
| In the preceding information, `build.sh` is the build script file in the `serving` directory, and `$MINDSPORE_LIB_PATH` is the `lib` directory in the installation path of the MindSpore software package, for example, `softwarepath/mindspore/lib`. This path contains the library files on which MindSpore depends. | |||
| Method 2: Directly build Serving. The MindSpore package is built together with Serving. You need to configure the [environment variables](https://gitee.com/mindspore/docs/blob/master/install/mindspore_ascend_install_source_en.md#configuring-environment-variables) for MindSpore building. | |||
| Method 2: Directly build Serving. The MindSpore package is built together with Serving. You need to configure the [environment variables](https://gitee.com/mindspore/docs/blob/r1.2/install/mindspore_ascend_install_source_en.md#configuring-environment-variables) for MindSpore building. | |||
| ```shell | |||
| # GPU | |||
| @@ -101,27 +101,27 @@ from mindspore_serving import worker | |||
| To run MindSpore Serving, configure the following environment variables: | |||
| - MindSpore Serving depends on MindSpore. You need to configure [environment variables](https://gitee.com/mindspore/docs/blob/master/install/mindspore_ascend_install_source_en.md#configuring-environment-variables) to run MindSpore. | |||
| - MindSpore Serving depends on MindSpore. You need to configure [environment variables](https://gitee.com/mindspore/docs/blob/r1.2/install/mindspore_ascend_install_source_en.md#configuring-environment-variables) to run MindSpore. | |||
| ## Quick Start | |||
| [MindSpore-based Inference Service Deployment](https://www.mindspore.cn/tutorial/inference/en/master/serving_example.html) is used to demonstrate how to use MindSpore Serving. | |||
| [MindSpore-based Inference Service Deployment](https://www.mindspore.cn/tutorial/inference/en/r1.2/serving_example.html) is used to demonstrate how to use MindSpore Serving. | |||
| ## Documents | |||
| ### Developer Guide | |||
| - [gRPC-based MindSpore Serving Access](https://www.mindspore.cn/tutorial/inference/en/master/serving_grpc.html) | |||
| - [RESTful-based MindSpore Serving Access](https://www.mindspore.cn/tutorial/inference/en/master/serving_restful.html) | |||
| - [Servable Provided Through Model Configuration](https://www.mindspore.cn/tutorial/inference/en/master/serving_model.html) | |||
| - [gRPC-based MindSpore Serving Access](https://www.mindspore.cn/tutorial/inference/en/r1.2/serving_grpc.html) | |||
| - [RESTful-based MindSpore Serving Access](https://www.mindspore.cn/tutorial/inference/en/r1.2/serving_restful.html) | |||
| - [Servable Provided Through Model Configuration](https://www.mindspore.cn/tutorial/inference/en/r1.2/serving_model.html) | |||
| For more details about the installation guide, tutorials, and APIs, see [MindSpore Python API](https://www.mindspore.cn/doc/api_python/en/master/index.html). | |||
| For more details about the installation guide, tutorials, and APIs, see [MindSpore Python API](https://www.mindspore.cn/doc/api_python/en/r1.2/index.html). | |||
| ## Community | |||
| ### Governance | |||
| [MindSpore Open Governance](https://gitee.com/mindspore/community/blob/master/governance.md) | |||
| [MindSpore Open Governance](https://gitee.com/mindspore/community/blob/r1.2/governance.md) | |||
| ### Communication | |||
| @@ -67,7 +67,7 @@ MindSpore Serving依赖MindSpore训练推理框架,安装完[MindSpore](https: | |||
| 其中,`build.sh`为`serving`目录下的编译脚本文件,`$MINDSPORE_LIB_PATH`为MindSpore软件包的安装路径下的`lib`路径,例如,`softwarepath/mindspore/lib`,该路径包含MindSpore运行依赖的库文件。 | |||
| 方式二,直接编译Serving,编译时会配套编译MindSpore的包,需要配置MindSpore编译时的[环境变量](https://gitee.com/mindspore/docs/blob/master/install/mindspore_ascend_install_source.md#配置环境变量) : | |||
| 方式二,直接编译Serving,编译时会配套编译MindSpore的包,需要配置MindSpore编译时的[环境变量](https://gitee.com/mindspore/docs/blob/r1.2/install/mindspore_ascend_install_source.md#配置环境变量) : | |||
| ```shell | |||
| # GPU | |||
| @@ -101,28 +101,28 @@ from mindspore_serving import worker | |||
| MindSpore Serving运行需要配置以下环境变量: | |||
| - MindSpore Serving依赖MindSpore正确运行,运行MindSpore需要完成[环境变量配置](https://gitee.com/mindspore/docs/blob/master/install/mindspore_ascend_install_pip.md#%E9%85%8D%E7%BD%AE%E7%8E%AF%E5%A2%83%E5%8F%98%E9%87%8F)。 | |||
| - MindSpore Serving依赖MindSpore正确运行,运行MindSpore需要完成[环境变量配置](https://gitee.com/mindspore/docs/blob/r1.2/install/mindspore_ascend_install_pip.md#%E9%85%8D%E7%BD%AE%E7%8E%AF%E5%A2%83%E5%8F%98%E9%87%8F)。 | |||
| ## 快速入门 | |||
| 以一个简单的[Add网络示例](https://www.mindspore.cn/tutorial/inference/zh-CN/master/serving_example.html),演示MindSpore Serving如何使用。 | |||
| 以一个简单的[Add网络示例](https://www.mindspore.cn/tutorial/inference/zh-CN/r1.2/serving_example.html),演示MindSpore Serving如何使用。 | |||
| ## 文档 | |||
| ### 开发者教程 | |||
| - [基于gRPC接口访问MindSpore Serving服务](https://www.mindspore.cn/tutorial/inference/zh-CN/master/serving_grpc.html) | |||
| - [基于RESTful接口访问MindSpore Serving服务](https://www.mindspore.cn/tutorial/inference/zh-CN/master/serving_restful.html) | |||
| - [通过配置模型提供Servable](https://www.mindspore.cn/tutorial/inference/zh-CN/master/serving_model.html) | |||
| - [基于MindSpore Serving部署分布式推理服务](https://www.mindspore.cn/tutorial/inference/zh-CN/master/serving_distributed_example.html) | |||
| - [基于gRPC接口访问MindSpore Serving服务](https://www.mindspore.cn/tutorial/inference/zh-CN/r1.2/serving_grpc.html) | |||
| - [基于RESTful接口访问MindSpore Serving服务](https://www.mindspore.cn/tutorial/inference/zh-CN/r1.2/serving_restful.html) | |||
| - [通过配置模型提供Servable](https://www.mindspore.cn/tutorial/inference/zh-CN/r1.2/serving_model.html) | |||
| - [基于MindSpore Serving部署分布式推理服务](https://www.mindspore.cn/tutorial/inference/zh-CN/r1.2/serving_distributed_example.html) | |||
| 有关安装指南、教程和API的更多详细信息,请参阅[用户文档](https://www.mindspore.cn/doc/api_python/zh-CN/master/index.html)。 | |||
| 有关安装指南、教程和API的更多详细信息,请参阅[用户文档](https://www.mindspore.cn/doc/api_python/zh-CN/r1.2/index.html)。 | |||
| ## 社区 | |||
| ### 治理 | |||
| 查看MindSpore如何进行[开放治理](https://gitee.com/mindspore/community/blob/master/governance.md)。 | |||
| 查看MindSpore如何进行[开放治理](https://gitee.com/mindspore/community/blob/r1.2/governance.md)。 | |||
| ### 交流 | |||
| @@ -138,7 +138,7 @@ def start_servable(servable_directory, servable_name, version_number=0, | |||
| Args: | |||
| servable_directory (str): The directory where the servable is located in. There expects to has a directory | |||
| named `servable_name`. For more detail: | |||
| `How to config Servable <https://www.mindspore.cn/tutorial/inference/zh-CN/master/serving_model.html>`_ . | |||
| `How to config Servable <https://www.mindspore.cn/tutorial/inference/zh-CN/r1.2/serving_model.html>`_ . | |||
| servable_name (str): The servable name. | |||
| version_number (int): Servable version number to be loaded. The version number should be a positive integer, | |||
| @@ -198,7 +198,7 @@ def start_servable_in_master(servable_directory, servable_name, version_number=0 | |||
| Args: | |||
| servable_directory (str): The directory where the servable is located in. There expects to has a directory named | |||
| `servable_name`. For more detail: | |||
| `How to config Servable <https://www.mindspore.cn/tutorial/inference/zh-CN/master/serving_model.html>`_ . | |||
| `How to config Servable <https://www.mindspore.cn/tutorial/inference/zh-CN/r1.2/serving_model.html>`_ . | |||
| servable_name (str): The servable name. | |||
| version_number (int): Servable version number to be loaded. The version number should be a positive integer, | |||
| @@ -50,7 +50,7 @@ def start_distributed_servable(servable_directory, servable_name, rank_table_jso | |||
| Args: | |||
| servable_directory (str): The directory where the servable is located in. There expects to has a directory | |||
| named `servable_name`. For more detail: | |||
| `How to config Servable <https://www.mindspore.cn/tutorial/inference/zh-CN/master/serving_model.html>`_ . | |||
| `How to config Servable <https://www.mindspore.cn/tutorial/inference/zh-CN/r1.2/serving_model.html>`_ . | |||
| servable_name (str): The servable name. | |||
| version_number (int): Servable version number to be loaded. The version number should be a positive integer, | |||
| @@ -107,7 +107,7 @@ def start_distributed_servable_in_master(servable_directory, servable_name, rank | |||
| Args: | |||
| servable_directory (str): The directory where the servable is located in. There expects to has a directory named | |||
| `servable_name`. For more detail: | |||
| `How to config Servable <https://www.mindspore.cn/tutorial/inference/zh-CN/master/serving_model.html>`_ . | |||
| `How to config Servable <https://www.mindspore.cn/tutorial/inference/zh-CN/r1.2/serving_model.html>`_ . | |||
| servable_name (str): The servable name. | |||
| version_number (int): Servable version number to be loaded. The version number should be a positive integer, | |||
| @@ -80,8 +80,8 @@ def call_preprocess_pipeline(preprocess_fun, *args): | |||
| in `preprocess` or `postprocess`, such as using MindData concurrency ability to process multiple input | |||
| images in `preprocess`, MindSpore Serving provides 'call_preprocess_pipeline' and 'call_pstprocess_pipeline' | |||
| to register such preprocessing and postprocessing. For more detail, | |||
| please refer to [Resnet50 model configuration example] | |||
| <https://gitee.com/mindspore/serving/blob/master/example/resnet/resnet50/servable_config.py>`_ . | |||
| please refer to `Resnet50 model configuration example | |||
| <https://gitee.com/mindspore/serving/blob/r1.2/example/resnet/resnet50/servable_config.py>`_ . | |||
| Args: | |||
| preprocess_fun (function): Python pipeline function for preprocess. | |||
| @@ -248,8 +248,8 @@ def call_postprocess_pipeline(postprocess_fun, *args): | |||
| in `preprocess` or `postprocess`, such as using MindData concurrency ability to process multiple input | |||
| images in `preprocess`, MindSpore Serving provides 'call_preprocess_pipeline' and 'call_pstprocess_pipeline' | |||
| to register such preprocessing and postprocessing. For more detail, | |||
| please refer to [Resnet50 model configuration example] | |||
| <https://gitee.com/mindspore/serving/blob/master/example/resnet/resnet50/servable_config.py>`_ . | |||
| please refer to `Resnet50 model configuration example | |||
| <https://gitee.com/mindspore/serving/blob/r1.2/example/resnet/resnet50/servable_config.py>`_ . | |||
| Args: | |||
| postprocess_fun (function): Python pipeline function for postprocess. | |||