mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2026-04-24 01:29:57 +08:00
[Other] Optimize runtime module (#1356)
* Optimize runtime * fix error * [Backend] Add option to print tensorrt conversion log (#1386) Add option to print tensorrt conversion log Co-authored-by: root <root@bjyz-sys-gpu-kongming3.bjyz.baidu.com> --------- Co-authored-by: root <root@bjyz-sys-gpu-kongming3.bjyz.baidu.com>
This commit is contained in:
@@ -21,6 +21,7 @@ void BindTrtOption(pybind11::module& m) {
|
||||
pybind11::class_<TrtBackendOption>(m, "TrtBackendOption")
|
||||
.def(pybind11::init())
|
||||
.def_readwrite("enable_fp16", &TrtBackendOption::enable_fp16)
|
||||
.def_readwrite("enable_log_info", &TrtBackendOption::enable_log_info)
|
||||
.def_readwrite("max_batch_size", &TrtBackendOption::max_batch_size)
|
||||
.def_readwrite("max_workspace_size",
|
||||
&TrtBackendOption::max_workspace_size)
|
||||
|
||||
Reference in New Issue
Block a user