提交 6a55aac3 编写于 作者: D duanyanhui 提交者: cuicheng01

update npu inference api

上级 a89269e5
......@@ -63,7 +63,7 @@ class Predictor(object):
if args.get("use_gpu", False):
config.enable_use_gpu(args.gpu_mem, 0)
elif args.get("use_npu", False):
config.enable_npu()
config.enable_custom_device('npu')
elif args.get("use_xpu", False):
config.enable_xpu()
else:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册