update npu inference api (#9764)

pull/9796/head
duanyanhui 2023-04-20 10:26:37 +08:00 committed by GitHub
parent 4b8e333f10
commit 013870d9bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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: