MCPcopy
hub / github.com/OpenPPL/ppq / report

Method report

ppq/utils/TensorRTUtil.py:277–280  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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
283def Benchmark(engine_file: str, steps: int = 10000) -> float:

Callers 4

ProfilingFunction · 0.45
quantize_onnx_modelFunction · 0.45
quantize_caffe_modelFunction · 0.45
quantize_native_modelFunction · 0.45

Calls 2

MeasurePrinterClass · 0.90
printMethod · 0.80

Tested by

no test coverage detected