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

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

Public Member Functions

virtual const char * getName () const =0
 Return name of the algorithm node. More...
 
virtual Dims getDimensions (int32_t index, OptProfileSelector select) const =0
 Get the minimum / optimum / maximum dimensions for input or output tensor. More...
 
virtual int32_t getNbInputs () const =0
 Return number of inputs of the algorithm. More...
 
virtual int32_t getNbOutputs () const =0
 Return number of outputs of the algorithm. More...
 

Protected Member Functions

virtual ~IAlgorithmContext ()
 

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 ( )
inlineprotectedvirtual

Member Function Documentation

◆ getName()

virtual const char* nvinfer1::IAlgorithmContext::getName ( ) const
pure virtual

Return name of the algorithm node.

This is a unique identifier for the IAlgorithmContext.

Here is the caller graph for this function:

◆ getDimensions()

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

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.

◆ getNbInputs()

virtual int32_t nvinfer1::IAlgorithmContext::getNbInputs ( ) const
pure virtual

Return number of inputs of the algorithm.

Here is the caller graph for this function:

◆ getNbOutputs()

virtual int32_t nvinfer1::IAlgorithmContext::getNbOutputs ( ) const
pure virtual

Return number of outputs of the algorithm.

Here is the caller graph for this function:

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