TensorRT 10.0.0
nvinfer1::ILoggerFinder Class Referenceabstract

A virtual base class to find a logger. Allows a plugin to find an instance of a logger if it needs to emit a log message. A pointer to an instance of this class is passed to a plugin shared library on initialization when that plugin is serialized as part of a version-compatible plan. See the plugin chapter in the developer guide for details. More...

#include <NvInferRuntime.h>

Public Member Functions

virtual ILoggerfindLogger ()=0
 Get the logger used by the engine or execution context which called the plugin method. More...
 

Protected Member Functions

virtual ~ILoggerFinder ()=default
 

Detailed Description

A virtual base class to find a logger. Allows a plugin to find an instance of a logger if it needs to emit a log message. A pointer to an instance of this class is passed to a plugin shared library on initialization when that plugin is serialized as part of a version-compatible plan. See the plugin chapter in the developer guide for details.

Constructor & Destructor Documentation

◆ ~ILoggerFinder()

virtual nvinfer1::ILoggerFinder::~ILoggerFinder ( )
protectedvirtualdefault

Member Function Documentation

◆ findLogger()

virtual ILogger * nvinfer1::ILoggerFinder::findLogger ( )
pure virtual

Get the logger used by the engine or execution context which called the plugin method.

Warning
Must be called from the thread in which the plugin method was called.
Returns
A pointer to the logger.

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