Profiler(self: tensorrt.tensorrt.Profiler) → None¶
When this class is added to an
IExecutionContext, the profiler will be called once per layer for each invocation of
IExecutionContext.execute(). Note that
IExecutionContext.execute_async()does not currently support profiling.
The profiler will only be called after execution is complete. It has a small impact on execution time.