[Backend] Add collect shape for pp-trt backend (#372)

* Add collect_shape attr

* add EnableTunedTensorRtDynamicShape

* Add collect shape python api

* Fix quant model not set trt dynamic shape

* Add shape info print

* Fix shape print

* Use CopyFromCpu instead of ShareExternalData

* Add ENABLE_TRT_BACKEND macro

* Add shared data with
This commit is contained in:
Jack Zhou
2022-10-20 17:02:56 +08:00
committed by GitHub
parent c28f4d6019
commit dccb737d8d
9 changed files with 251 additions and 20 deletions

View File

@@ -26,7 +26,7 @@ def process_paddle_inference(paddle_inference_so_file):
rpaths = [
"$ORIGIN", "$ORIGIN/../../third_party/install/mkldnn/lib/",
"$ORIGIN/../../third_party/install/mklml/lib/",
"$ORIGIN/../../../tensorrt/lib"
"$ORIGIN/../../../tensorrt/lib/"
]
patchelf_exe = os.getenv("PATCHELF_EXE", "patchelf")