未验证 提交 ce657457 编写于 作者: D duanyanhui 提交者: GitHub

update npu inference api (#9765)

上级 d496c8e8
......@@ -246,7 +246,7 @@ def create_predictor(args, mode, logger):
logger.info("Please keep your paddlepaddle-gpu >= 2.3.0!")
elif args.use_npu:
config.enable_npu()
config.enable_custom_device("npu")
elif args.use_xpu:
config.enable_xpu(10 * 1024 * 1024)
else:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册