Skip to content

Commit

Permalink
update npu inference api (PaddlePaddle#9765)
Browse files Browse the repository at this point in the history
  • Loading branch information
YanhuiDua committed Apr 20, 2023
1 parent d496c8e commit ce65745
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/infer/utility.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit ce65745

Please sign in to comment.