[Backend] Add KunlunXin XPU deploy support (#894)

Revert "Revert "[Backend] Add KunlunXin XPU deploy support" (#893)"

This reverts commit 0990ab9b50.
This commit is contained in:
Jason
2022-12-16 11:22:30 +08:00
committed by GitHub
parent 0990ab9b50
commit 2d998223ac
39 changed files with 870 additions and 58 deletions

View File

@@ -35,6 +35,9 @@ def build_option(args):
if args.device.lower() == "ipu":
option.use_ipu()
if args.device.lower() == "xpu":
option.use_xpu()
if args.use_trt:
option.use_trt_backend()
return option