Add trt max workspace setting (#308)

* add trt max workspace setting

* fix set trt max workspace
This commit is contained in:
Jack Zhou
2022-09-30 09:54:34 +08:00
committed by GitHub
parent 4a4c37aa97
commit dd365fb721
5 changed files with 13 additions and 1 deletions

View File

@@ -125,6 +125,9 @@ class RuntimeOption:
def disable_trt_fp16(self):
return self._option.disable_trt_fp16()
def set_trt_max_workspace_size(self, trt_max_workspace_size):
return self._option.set_trt_max_workspace_size(trt_max_workspace_size)
def __repr__(self):
attrs = dir(self._option)
message = "RuntimeOption(\n"