diff --git a/README.md b/README.md index 7392b31..11d97de 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/README_CN.md b/README_CN.md index 63d4ec8..239e3ac 100644 --- a/README_CN.md +++ b/README_CN.md @@ -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)。 ### 交流 diff --git a/mindspore_serving/worker/_worker.py b/mindspore_serving/worker/_worker.py index 2309f12..fae6bfa 100644 --- a/mindspore_serving/worker/_worker.py +++ b/mindspore_serving/worker/_worker.py @@ -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 `_ . + `How to config Servable `_ . 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 `_ . + `How to config Servable `_ . servable_name (str): The servable name. version_number (int): Servable version number to be loaded. The version number should be a positive integer, diff --git a/mindspore_serving/worker/distributed/distributed_worker.py b/mindspore_serving/worker/distributed/distributed_worker.py index ef77d27..8f526b1 100644 --- a/mindspore_serving/worker/distributed/distributed_worker.py +++ b/mindspore_serving/worker/distributed/distributed_worker.py @@ -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 `_ . + `How to config Servable `_ . 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 `_ . + `How to config Servable `_ . servable_name (str): The servable name. version_number (int): Servable version number to be loaded. The version number should be a positive integer, diff --git a/mindspore_serving/worker/register/method.py b/mindspore_serving/worker/register/method.py index 063227c..b00f0c7 100644 --- a/mindspore_serving/worker/register/method.py +++ b/mindspore_serving/worker/register/method.py @@ -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] - `_ . + please refer to `Resnet50 model configuration example + `_ . 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] - `_ . + please refer to `Resnet50 model configuration example + `_ . Args: postprocess_fun (function): Python pipeline function for postprocess.