[Other] Add runtime cpp demos (#515)

* add paddle_trt in benchmark

* update benchmark in device

* update benchmark

* update result doc

* fixed for CI

* update python api_docs

* update index.rst

* add runtime cpp examples

* deal with comments

* Update infer_paddle_tensorrt.py

Co-authored-by: Jason <928090362@qq.com>
This commit is contained in:
WJJ1995
2022-11-07 19:49:12 +08:00
committed by GitHub
parent ff24ed6a54
commit 0bb40ab100
11 changed files with 403 additions and 0 deletions

View File

@@ -27,6 +27,8 @@ option.set_model_path("mobilenetv2/inference.pdmodel",
# **** GPU 配置 ***
option.use_gpu(0)
option.use_trt_backend()
# using TensorRT integrated in Paddle Inference
# option.enable_paddle_to_trt()
# 初始化构造runtime
runtime = fd.Runtime(option)