提交 73792442 编写于 作者: J Jiawei Wang 提交者: wangjiawei04

Merge pull request #1001 from HexToString/fix_server_bug

fix_MultiLangServer_bug and encryption doc
上级 558910c5
......@@ -12,6 +12,7 @@ sh get_data.sh
## Encrypt Model
The `paddlepaddle` package is used in this example, you may need to download the corresponding package(`pip install paddlepaddle`).
```
python encrypt.py
```
......
......@@ -11,7 +11,7 @@ sh get_data.sh
```
## 模型加密
本示例中使用了`paddlepaddle`包中的模块,需要进行下载(`pip install paddlepaddle`)。
```
python encrypt.py
```
......
......@@ -771,6 +771,9 @@ class MultiLangServer(object):
self.concurrency_ = concurrency
self.bserver_.set_max_concurrency(concurrency)
def set_device(self, device="cpu"):
self.device = device
def set_num_threads(self, threads):
self.worker_num_ = threads
self.bserver_.set_num_threads(threads)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册