TensorRT  7.2.1.6
NVIDIA TensorRT
Looking for a C++ dev who knows TensorRT?
I'm looking for work. Hire me!
nvinfer1::IDimensionExpr Class Referenceabstract

Public Member Functions

virtual bool isConstant () const =0
 Return true if expression is a build-time constant. More...
 
virtual int32_t getConstantValue () const =0
 If isConstant(), returns value of the constant. More...
 

Protected Member Functions

virtual ~IDimensionExpr ()
 

Detailed Description

An IDimensionExpr represents an integer expression constructed from constants, input dimensions, and binary operations. These expressions are can be used in overrides of IPluginV2DynamicExt::getOutputDimensions to define output dimensions in terms of input dimensions.

See also
DimensionOperation, IPluginV2DynamicExt::getOutputDimensions

Constructor & Destructor Documentation

◆ ~IDimensionExpr()

virtual nvinfer1::IDimensionExpr::~IDimensionExpr ( )
inlineprotectedvirtual

Member Function Documentation

◆ isConstant()

virtual bool nvinfer1::IDimensionExpr::isConstant ( ) const
pure virtual

Return true if expression is a build-time constant.

◆ getConstantValue()

virtual int32_t nvinfer1::IDimensionExpr::getConstantValue ( ) const
pure virtual

If isConstant(), returns value of the constant.

If !isConstant(), return std::numeric_limits<int32_t>::min().

Here is the caller graph for this function:

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