TensorRT 10.0.1
nvinfer1::IPluginResourceContext Class Referenceabstract

Interface for plugins to access per context resources provided by TensorRT. More...

#include <NvInferRuntime.h>

Public Member Functions

virtual IGpuAllocatorgetGpuAllocator () const noexcept=0
 Get the GPU allocator associated with the resource context. More...
 
virtual IErrorRecordergetErrorRecorder () const noexcept=0
 Get the error recorder associated with the resource context. More...
 
virtual ~IPluginResourceContext () noexcept=default
 

Protected Member Functions

 IPluginResourceContext ()=default
 
 IPluginResourceContext (IPluginResourceContext const &)=default
 
 IPluginResourceContext (IPluginResourceContext &&)=default
 
IPluginResourceContextoperator= (IPluginResourceContext const &) &=default
 
IPluginResourceContextoperator= (IPluginResourceContext &&) &=default
 

Detailed Description

Interface for plugins to access per context resources provided by TensorRT.

There is no public way to construct an IPluginResourceContext. It appears as an argument to IPluginV3OneRuntime::attachToContext(). Overrides of that method can use the IPluginResourceContext object to access any available per context resources.

Warning
Do not inherit from this class, as doing so will break forward-compatibility of the API and ABI.
See also
IPluginV3OneRuntime::attachToContext()

Constructor & Destructor Documentation

◆ ~IPluginResourceContext()

virtual nvinfer1::IPluginResourceContext::~IPluginResourceContext ( )
virtualdefaultnoexcept

◆ IPluginResourceContext() [1/3]

nvinfer1::IPluginResourceContext::IPluginResourceContext ( )
protecteddefault

◆ IPluginResourceContext() [2/3]

nvinfer1::IPluginResourceContext::IPluginResourceContext ( IPluginResourceContext const &  )
protecteddefault

◆ IPluginResourceContext() [3/3]

nvinfer1::IPluginResourceContext::IPluginResourceContext ( IPluginResourceContext &&  )
protecteddefault

Member Function Documentation

◆ getErrorRecorder()

virtual IErrorRecorder * nvinfer1::IPluginResourceContext::getErrorRecorder ( ) const
pure virtualnoexcept

Get the error recorder associated with the resource context.

See also
IPluginV3OneRuntime::attachToContext()

◆ getGpuAllocator()

virtual IGpuAllocator * nvinfer1::IPluginResourceContext::getGpuAllocator ( ) const
pure virtualnoexcept

Get the GPU allocator associated with the resource context.

See also
IPluginV3OneRuntime::attachToContext()

◆ operator=() [1/2]

IPluginResourceContext & nvinfer1::IPluginResourceContext::operator= ( IPluginResourceContext &&  ) &
protecteddefault

◆ operator=() [2/2]

IPluginResourceContext & nvinfer1::IPluginResourceContext::operator= ( IPluginResourceContext const &  ) &
protecteddefault

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