TensorRT  8.0.2
nvinfer1::IDimensionExpr Class Reference

#include <NvInferRuntime.h>

Inheritance diagram for nvinfer1::IDimensionExpr:

Public Member Functions

bool isConstant () const noexcept
 Return true if expression is a build-time constant.
int32_t getConstantValue () const noexcept

Protected Attributes


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

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.

Do not inherit from this class, as doing so will break forward-compatibility of the API and ABI.
See also
DimensionOperation, IPluginV2DynamicExt::getOutputDimensions

Member Function Documentation

◆ getConstantValue()

int32_t nvinfer1::IDimensionExpr::getConstantValue ( ) const

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

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