TensorRT  8.2.0
nvinfer1::IAlgorithm Class Reference

Describes a variation of execution of a layer. An algorithm is represented by IAlgorithmVariant and the IAlgorithmIOInfo for each of its inputs and outputs. An algorithm can be selected or reproduced using AlgorithmSelector::selectAlgorithms().". More...

#include <NvInfer.h>

Inheritance diagram for nvinfer1::IAlgorithm:
nvinfer1::INoCopy

Public Member Functions

const TRT_DEPRECATED IAlgorithmIOInfogetAlgorithmIOInfo (int32_t index) const noexcept
 Returns the format of an Algorithm input or output. Algorithm inputs are incrementally numbered first, followed by algorithm outputs. More...
 
const IAlgorithmVariantgetAlgorithmVariant () const noexcept
 Returns the algorithm variant.
 
float getTimingMSec () const noexcept
 The time in milliseconds to execute the algorithm.
 
std::size_t getWorkspaceSize () const noexcept
 The size of the GPU temporary memory in bytes which the algorithm uses at execution time.
 
const IAlgorithmIOInfogetAlgorithmIOInfoByIndex (int32_t index) const noexcept
 Returns the format of an Algorithm input or output. Algorithm inputs are incrementally numbered first, followed by algorithm outputs. More...
 

Protected Attributes

apiv::VAlgorithm * 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 a variation of execution of a layer. An algorithm is represented by IAlgorithmVariant and the IAlgorithmIOInfo for each of its inputs and outputs. An algorithm can be selected or reproduced using AlgorithmSelector::selectAlgorithms().".

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

Member Function Documentation

◆ getAlgorithmIOInfo()

const TRT_DEPRECATED IAlgorithmIOInfo& nvinfer1::IAlgorithm::getAlgorithmIOInfo ( int32_t  index) const
inlinenoexcept

Returns the format of an Algorithm input or output. Algorithm inputs are incrementally numbered first, followed by algorithm outputs.

Parameters
indexIndex of the input or output of the algorithm. Incremental numbers assigned to indices of inputs and the outputs.
Returns
a reference to IAlgorithmIOInfo specified by index or the first algorithm if index is out of range.
Deprecated:
API will be removed in TensorRT 10.0, use IAlgorithm::getAlgorithmIOInfoByIndex instead.

◆ getAlgorithmIOInfoByIndex()

const IAlgorithmIOInfo* nvinfer1::IAlgorithm::getAlgorithmIOInfoByIndex ( int32_t  index) const
inlinenoexcept

Returns the format of an Algorithm input or output. Algorithm inputs are incrementally numbered first, followed by algorithm outputs.

Parameters
indexIndex of the input or output of the algorithm. Incremental numbers assigned to indices of inputs and the outputs.
Returns
a pointer to a IAlgorithmIOInfo interface or nullptr if index is out of range.

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