TensorRT 8.6.1
nvinfer1::IAlgorithmContext Class Reference

Describes the context and requirements, that could be fulfilled by one or more instances of IAlgorithm. More...

#include <NvInfer.h>

Inheritance diagram for nvinfer1::IAlgorithmContext:
nvinfer1::INoCopy

Public Member Functions

char const * getName () const noexcept
 Return name of the algorithm node. This is a unique identifier for the IAlgorithmContext. More...
 
Dims getDimensions (int32_t index, OptProfileSelector select) const noexcept
 Get the minimum / optimum / maximum dimensions for input or output tensor. More...
 
int32_t getNbInputs () const noexcept
 Return number of inputs of the algorithm. More...
 
int32_t getNbOutputs () const noexcept
 Return number of outputs of the algorithm. More...
 

Protected Member Functions

virtual ~IAlgorithmContext () noexcept=default
 
- Protected Member Functions inherited from nvinfer1::INoCopy
 INoCopy ()=default
 
virtual ~INoCopy ()=default
 
 INoCopy (INoCopy const &other)=delete
 
INoCopyoperator= (INoCopy const &other)=delete
 
 INoCopy (INoCopy &&other)=delete
 
INoCopyoperator= (INoCopy &&other)=delete
 

Protected Attributes

apiv::VAlgorithmContext * mImpl
 

Detailed Description

Describes the context and requirements, that could be fulfilled by one or more instances of IAlgorithm.

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

Constructor & Destructor Documentation

◆ ~IAlgorithmContext()

virtual nvinfer1::IAlgorithmContext::~IAlgorithmContext ( )
protectedvirtualdefaultnoexcept

Member Function Documentation

◆ getDimensions()

Dims nvinfer1::IAlgorithmContext::getDimensions ( int32_t  index,
OptProfileSelector  select 
) const
inlinenoexcept

Get the minimum / optimum / maximum dimensions for input or output tensor.

Parameters
indexIndex of the input or output of the algorithm. Incremental numbers assigned to indices of inputs and the outputs.
selectWhich of the minimum, optimum, or maximum dimensions to be queried.

◆ getName()

char const * nvinfer1::IAlgorithmContext::getName ( ) const
inlinenoexcept

Return name of the algorithm node. This is a unique identifier for the IAlgorithmContext.

◆ getNbInputs()

int32_t nvinfer1::IAlgorithmContext::getNbInputs ( ) const
inlinenoexcept

Return number of inputs of the algorithm.

◆ getNbOutputs()

int32_t nvinfer1::IAlgorithmContext::getNbOutputs ( ) const
inlinenoexcept

Return number of outputs of the algorithm.

Member Data Documentation

◆ mImpl

apiv::VAlgorithmContext* nvinfer1::IAlgorithmContext::mImpl
protected

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