TensorRT 10.0.0
nvinfer1::Dims4 Class Reference

Descriptor for four-dimensional data. More...

#include <NvInferLegacyDims.h>

Inheritance diagram for nvinfer1::Dims4:
nvinfer1::Dims3 nvinfer1::Dims2 nvinfer1::Dims64

Public Member Functions

 Dims4 ()
 Construct an empty Dims4 object. More...
 
 Dims4 (int64_t d0, int64_t d1, int64_t d2, int64_t d3)
 Construct a Dims4 from 4 elements. More...
 
- Public Member Functions inherited from nvinfer1::Dims3
 Dims3 ()
 Construct an empty Dims3 object. More...
 
 Dims3 (int64_t d0, int64_t d1, int64_t d2)
 Construct a Dims3 from 3 elements. More...
 
- Public Member Functions inherited from nvinfer1::Dims2
 Dims2 ()
 Construct an empty Dims2 object. More...
 
 Dims2 (int64_t d0, int64_t d1)
 Construct a Dims2 from 2 elements. More...
 

Additional Inherited Members

- Public Attributes inherited from nvinfer1::Dims64
int32_t nbDims
 The rank (number of dimensions). More...
 
int64_t d [MAX_DIMS]
 The extent of each dimension. More...
 
- Static Public Attributes inherited from nvinfer1::Dims64
static constexpr int32_t MAX_DIMS {8}
 The maximum rank (number of dimensions) supported for a tensor. More...
 

Detailed Description

Descriptor for four-dimensional data.

Constructor & Destructor Documentation

◆ Dims4() [1/2]

nvinfer1::Dims4::Dims4 ( )
inline

Construct an empty Dims4 object.

◆ Dims4() [2/2]

nvinfer1::Dims4::Dims4 ( int64_t  d0,
int64_t  d1,
int64_t  d2,
int64_t  d3 
)
inline

Construct a Dims4 from 4 elements.

Parameters
d0The first element.
d1The second element.
d2The third element.
d3The fourth element.

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