[Backend] support ipu in paddle inference backend. (#437)

* feat(ipu): add ipu support for paddle_infer backend.

* fix(): remove unused env.

* fix(ipu): simplify user API for IPU.

* fix(cmake): fix merge conflict error in CMakeList.

Co-authored-by: Jason <jiangjiajun@baidu.com>
This commit is contained in:
czr-gc
2022-10-30 18:59:59 +08:00
committed by GitHub
parent ee2c6136fc
commit ede59af857
23 changed files with 457 additions and 115 deletions

View File

@@ -33,6 +33,10 @@ option.set_cpu_thread_num(12)
# 如需使用GPU使用如下注释代码
# option.use_gpu(0)
# **** IPU 配置 ***
# 如需使用IPU使用如下注释代码
# option.use_ipu()
# 初始化构造runtime
runtime = fd.Runtime(option)