TensorRT 8.4.0
nvinfer1::IExprBuilder Class Reference

#include <NvInferRuntime.h>

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

Public Member Functions

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

Protected Member Functions

virtual ~IExprBuilder () noexcept=default
 
- Protected Member Functions inherited from nvinfer1::INoCopy
 INoCopy ()=default
 
virtual ~INoCopy ()=default
 
 INoCopy (const INoCopy &other)=delete
 
INoCopyoperator= (const INoCopy &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()

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

Return pointer to IDimensionExp for given value.

◆ operation()

const IDimensionExpr * nvinfer1::IExprBuilder::operation ( DimensionOperation  op,
const IDimensionExpr first,
const IDimensionExpr 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: