TensorRT  7.2.1.6
NVIDIA TensorRT
Looking for a C++ dev who knows TensorRT?
I'm looking for work. Hire me!
nvinfer1::IProfiler Class Referenceabstract

Application-implemented interface for profiling. More...

Inheritance diagram for nvinfer1::IProfiler:

Public Member Functions

virtual void reportLayerTime (const char *layerName, float ms)=0
 Layer time reporting callback. More...
 
virtual ~IProfiler ()
 

Detailed Description

Application-implemented interface for profiling.

When this class is added to an execution context, the profiler will be called once per layer for each invocation of execute(). Note that enqueue() does not currently support profiling.

The profiler will only be called after execution is complete. It has a small impact on execution time.

Constructor & Destructor Documentation

◆ ~IProfiler()

virtual nvinfer1::IProfiler::~IProfiler ( )
inlinevirtual

Member Function Documentation

◆ reportLayerTime()

virtual void nvinfer1::IProfiler::reportLayerTime ( const char *  layerName,
float  ms 
)
pure virtual

Layer time reporting callback.

Parameters
layerNameThe name of the layer, set when constructing the network definition.
msThe time in milliseconds to execute the layer.

Implemented in sample::Profiler, and SimpleProfiler.


The documentation for this class was generated from the following file: