TensorRT 10.0.1
nvinfer1::IAlgorithmIOInfo Class Reference

Carries information about input or output of the algorithm. IAlgorithmIOInfo for all the input and output along with IAlgorithmVariant denotes the variation of algorithm and can be used to select or reproduce an algorithm using IAlgorithmSelector::selectAlgorithms(). More...

#include <NvInfer.h>

Inheritance diagram for nvinfer1::IAlgorithmIOInfo:
nvinfer1::INoCopy

Public Member Functions

DataType getDataType () const noexcept
 Return DataType of the input/output of algorithm. More...
 
Dims getStrides () const noexcept
 Return strides of the input/output tensor of algorithm. For vectorized formats, strides are given in units of vectors. More...
 
int64_t getVectorizedDim () const noexcept
 Return the index of the vectorized dimension or -1 for non-vectorized formats. More...
 
int64_t getComponentsPerElement () const noexcept
 Return the number of components per element. This is always 1 for non-vectorized formats. More...
 

Protected Member Functions

virtual ~IAlgorithmIOInfo () 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::VAlgorithmIOInfo * mImpl
 

Detailed Description

Carries information about input or output of the algorithm. IAlgorithmIOInfo for all the input and output along with IAlgorithmVariant denotes the variation of algorithm and can be used to select or reproduce an algorithm using IAlgorithmSelector::selectAlgorithms().

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

Constructor & Destructor Documentation

◆ ~IAlgorithmIOInfo()

virtual nvinfer1::IAlgorithmIOInfo::~IAlgorithmIOInfo ( )
protectedvirtualdefaultnoexcept

Member Function Documentation

◆ getComponentsPerElement()

int64_t nvinfer1::IAlgorithmIOInfo::getComponentsPerElement ( ) const
inlinenoexcept

Return the number of components per element. This is always 1 for non-vectorized formats.

Returns
the number of components per element.

◆ getDataType()

DataType nvinfer1::IAlgorithmIOInfo::getDataType ( ) const
inlinenoexcept

Return DataType of the input/output of algorithm.

Returns
the data type.

◆ getStrides()

Dims nvinfer1::IAlgorithmIOInfo::getStrides ( ) const
inlinenoexcept

Return strides of the input/output tensor of algorithm. For vectorized formats, strides are given in units of vectors.

Returns
the strides of the tensor.

◆ getVectorizedDim()

int64_t nvinfer1::IAlgorithmIOInfo::getVectorizedDim ( ) const
inlinenoexcept

Return the index of the vectorized dimension or -1 for non-vectorized formats.

Returns
the index of the vectorized dimension.

Member Data Documentation

◆ mImpl

apiv::VAlgorithmIOInfo* nvinfer1::IAlgorithmIOInfo::mImpl
protected

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