(self)
| 275 | self.recorder[layer_name] += ms * 1000 / self.steps |
| 276 | |
| 277 | def report(self): |
| 278 | MeasurePrinter(data=self.recorder, measure='RUNNING TIME(us)', order=None).print() |
| 279 | print(f'\nTotal Inference Time: {self.total_runtime:.4f}(us)') |
| 280 | print('You should notice that inference time != Lantancy, cause layer can be executed concurrently.') |
| 281 | |
| 282 | |
| 283 | def Benchmark(engine_file: str, steps: int = 10000) -> float: |
no test coverage detected