TensorRT 8.4.3
nvinfer1::IProfiler Class Referenceabstract

Application-implemented interface for profiling. More...

#include <NvInferRuntime.h>

Public Member Functions

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

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 executeV2()/enqueueV2().

It is not recommended to run inference with profiler enabled when the inference execution time is critical since the profiler may affect execution time negatively.

Constructor & Destructor Documentation

◆ ~IProfiler()

virtual nvinfer1::IProfiler::~IProfiler ( )
inlinevirtualnoexcept

Member Function Documentation

◆ reportLayerTime()

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

Layer time reporting callback.

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

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

  Copyright © 2024 NVIDIA Corporation
  Privacy Policy | Manage My Privacy | Do Not Sell or Share My Data | Terms of Service | Accessibility | Corporate Policies | Product Security | Contact