mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-05 16:48:03 +08:00
[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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user