TensorRT  8.2.0
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

const char * getName () const noexcept
 Return name of the algorithm node. This is a unique identifier for the IAlgorithmContext.
 
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.
 
int32_t getNbOutputs () const noexcept
 Return number of outputs of the algorithm.
 

Protected Attributes

apiv::VAlgorithmContext * mImpl
 

Additional Inherited Members

- Protected Member Functions inherited from nvinfer1::INoCopy
 INoCopy (const INoCopy &other)=delete
 
INoCopyoperator= (const INoCopy &other)=delete
 
 INoCopy (INoCopy &&other)=delete
 
INoCopyoperator= (INoCopy &&other)=delete
 

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.

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.

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