未验证 提交 20d5c726 编写于 作者: T TeslaZhao 提交者: GitHub

Merge branch 'develop' into fix_bug_on_localWebService

......@@ -26,7 +26,7 @@ def serving_encryption():
serving_client="encrypt_client",
encryption=True)
```
dirname is the folder path where the model is located. If the parameter is discrete, it is unnecessary to specify params_filename, else you need to set params_filename='__params__'.
dirname is the folder path where the model is located. If the parameter is discrete, it is unnecessary to specify params_filename, else you need to set `params_filename="__params__"`.
The key is stored in the `key` file, and the encrypted model file and server-side configuration file are stored in the `encrypt_server` directory.
client-side configuration file are stored in the `encrypt_client` directory.
......
......@@ -13,7 +13,7 @@ sh get_data.sh
## 模型加密
本示例中使用了`paddlepaddle`包中的模块,需要进行下载(`pip install paddlepaddle`)。
[python encrypt.py](./encrypt.py)
运行[python encrypt.py](./encrypt.py)进行模型加密
[//file]:#encrypt.py
``` python
......@@ -25,7 +25,9 @@ def serving_encryption():
serving_client="encrypt_client",
encryption=True)
```
其中dirname为模型所在的文件夹路径,当参数为离散参数时,无须指定params_filename,当参数为为__params__时,需指定params_filename='__params__'.
其中dirname为模型所在的文件夹路径
当参数为离散参数时,无须指定params_filename,当参数为__params__时,需指定`params_filename="__params__"`
密钥保存在`key`文件中,加密模型文件以及server端配置文件保存在`encrypt_server`目录下,client端配置文件保存在`encrypt_client`目录下。
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册