10000 upgrade ade dgu load api by 0YuanZhang0 · Pull Request #4659 · PaddlePaddle/models · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

upgrade ade dgu load api #4659

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 21, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,7 @@ python -u main.py \
```

### 服务部署
    模块内提供已训练好的5个inference_model模型,用户可根据自身业务情况进行下载使用
    模块内提供已训练好的5个训练模型,用户可通过执行inference model脚本转换成可以部署的模型

#### 服务器部署
    请参考PaddlePaddle官方提供的[服务器端部署](https://www.paddlepaddle.org.cn/documentation/docs/zh/1.5/advanced_usage/deploy/inference/index_cn.html)文档进行部署上线。
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@ def do_save_inference_model(args):
assert (args.init_from_params) or (args.init_from_pretrain_model)

if args.init_from_params:
fluid.load(test_prog, args.init_from_params)
fluid.load(test_prog, args.init_from_params, executor=exe)
elif args.init_from_pretrain_model:
fluid.load(test_prog, args.init_from_pretrain_model)
fluid.load(test_prog, args.init_from_pretrain_model, executor=exe)

# saving inference model
fluid.io.save_inference_model(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def do_save_inference_model(args):
assert (args.init_from_params)

if args.init_from_params:
fluid.load(test_prog, args.init_from_params)
fluid.load(test_prog, args.init_from_params, executor=exe)

# saving inference model
fluid.io.save_inference_model(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def do_predict(args):
assert (args.init_from_params)

if args.init_from_params:
fluid.load(test_prog, args.init_from_params)
fluid.load(test_prog, args.init_from_params, executor=exe)

compiled_test_prog = fluid.CompiledProgram(test_prog)

Expand Down
0