TensorRT  7.0.0.11
nvinfer1::IDimensionExpr Class Referenceabstract

#include <NvInferRuntime.h>

Public Member Functions

virtual bool isConstant () const =0
 Return true if expression is a build-time constant.
 
virtual int getConstantValue () const =0
 

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

Member Function Documentation

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

If isConstant(), returns value of the constant. If !isConstant(), return std::numeric_limits<int>::min().


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