Add time statis functions for fastdeploy model (#96)

* Add time statis functions for fastdeploy model

* Create README.md

* Update README.md

* Update fastdeploy_model.cc

* Update fastdeploy_model.cc
This commit is contained in:
Jason
2022-08-11 14:06:43 +08:00
committed by GitHub
parent 7ccb0c9ff5
commit a7cf09354e
8 changed files with 112 additions and 20 deletions

View File

@@ -45,6 +45,15 @@ class FastDeployModel:
index, self.num_outputs())
return self._model.get_output_info(index)
def enable_record_time_of_runtime(self):
self._model.enable_record_time_of_runtime()
def disable_record_time_of_runtime(self):
self._model.disable_record_time_of_runtime()
def print_statis_info_of_runtime(self):
self._model.print_statis_info_of_runtime()
@property
def runtime_option(self):
return self._model.runtime_option if self._model is not None else None