提交 b115cb44 编写于 作者: D dyning

use enable_memory_optim for cpu and gpu, add paddlehelp QRcode

上级 2401626a
...@@ -88,10 +88,10 @@ def create_predictor(args, mode): ...@@ -88,10 +88,10 @@ def create_predictor(args, mode):
if args.use_gpu: if args.use_gpu:
config.enable_use_gpu(args.gpu_mem, 0) config.enable_use_gpu(args.gpu_mem, 0)
config.enable_memory_optim()
else: else:
config.disable_gpu() config.disable_gpu()
config.enable_memory_optim()
config.disable_glog_info() config.disable_glog_info()
# use zero copy # use zero copy
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册