TensorRT  8.2.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.
 
const IDimensionExproperation (DimensionOperation op, const IDimensionExpr &first, const IDimensionExpr &second) noexcept
 

Protected Attributes

apiv::VExprBuilder * 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

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

Member Function Documentation

◆ 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.


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