TensorRT  7.1.3.0
nvinfer1::IExprBuilder Class Referenceabstract

#include <NvInferRuntime.h>

Public Member Functions

virtual const IDimensionExprconstant (int value)=0
 Return pointer to IDimensionExp for given value.
 
virtual const IDimensionExproperation (DimensionOperation op, const IDimensionExpr &first, const IDimensionExpr &second)=0
 

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()

virtual const IDimensionExpr* nvinfer1::IExprBuilder::operation ( DimensionOperation  op,
const IDimensionExpr first,
const IDimensionExpr second 
)
pure virtual

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: