TensorRT 8.5.3
nvinfer1::IExprBuilder Class Reference

#include <NvInferRuntime.h>

Inheritance diagram for nvinfer1::IExprBuilder:
nvinfer1::INoCopy

Public Member Functions

IDimensionExpr const * constant (int32_t value) noexcept
 Return pointer to IDimensionExp for given value. More...
 
IDimensionExpr const * operation (DimensionOperation op, IDimensionExpr const &first, IDimensionExpr const &second) noexcept
 

Protected Member Functions

virtual ~IExprBuilder () 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::VExprBuilder * mImpl
 

Detailed Description

Object for constructing IDimensionExpr.

There is no public way to construct an IExprBuilder. It appears as an argument to method IPluginV2DynamicExt::getOutputDimensions(). Overrides of that method can use that IExprBuilder argument to construct expressions that define output dimensions in terms of input dimensions.

Clients should assume that any values constructed by the IExprBuilder are destroyed after IPluginV2DynamicExt::getOutputDimensions() returns.

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

Constructor & Destructor Documentation

◆ ~IExprBuilder()

virtual nvinfer1::IExprBuilder::~IExprBuilder ( )
protectedvirtualdefaultnoexcept

Member Function Documentation

◆ constant()

IDimensionExpr const * nvinfer1::IExprBuilder::constant ( int32_t  value)
inlinenoexcept

Return pointer to IDimensionExp for given value.

◆ operation()

IDimensionExpr const * nvinfer1::IExprBuilder::operation ( DimensionOperation  op,
IDimensionExpr const &  first,
IDimensionExpr const &  second 
)
inlinenoexcept

Return pointer to IDimensionExp that represents the given operation applied to first and second. Returns nullptr if op is not a valid DimensionOperation.

Member Data Documentation

◆ mImpl

apiv::VExprBuilder* nvinfer1::IExprBuilder::mImpl
protected

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