mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-05 16:48:03 +08:00
[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:
@@ -329,6 +329,12 @@ class RuntimeOption:
|
||||
"""
|
||||
return self._option.set_trt_max_workspace_size(trt_max_workspace_size)
|
||||
|
||||
def enable_paddle_trt_collect_shape(self):
|
||||
return self._option.enable_paddle_trt_collect_shape()
|
||||
|
||||
def disable_paddle_trt_collect_shape(self):
|
||||
return self._option.disable_paddle_trt_collect_shape()
|
||||
|
||||
def __repr__(self):
|
||||
attrs = dir(self._option)
|
||||
message = "RuntimeOption(\n"
|
||||
|
Reference in New Issue
Block a user