TensorRT
7.2.2.3
|
Descriptor for two-dimensional spatial data. More...
#include <NvInfer.h>
Public Member Functions | |
DimsHW () | |
Construct an empty DimsHW object. | |
DimsHW (int32_t height, int32_t width) | |
Construct a DimsHW given height and width. More... | |
int32_t & | h () |
Get the height. More... | |
int32_t | h () const |
Get the height. More... | |
int32_t & | w () |
Get the width. More... | |
int32_t | w () const |
Get the width. More... | |
Public Member Functions inherited from nvinfer1::Dims2 | |
Dims2 () | |
Construct an empty Dims2 object. | |
Dims2 (int32_t d0, int32_t d1) | |
Construct a Dims2 from 2 elements. More... | |
Additional Inherited Members | |
Public Attributes inherited from nvinfer1::Dims | |
int32_t | nbDims |
The number of dimensions. | |
int32_t | d [MAX_DIMS] |
The extent of each dimension. | |
TRT_DEPRECATED DimensionType | type [MAX_DIMS] |
Static Public Attributes inherited from nvinfer1::Dims | |
static const int32_t | MAX_DIMS = 8 |
The maximum number of dimensions supported for a tensor. | |
Descriptor for two-dimensional spatial data.
|
inline |
Construct a DimsHW given height and width.
Height | the height of the data |
Width | the width of the data |
|
inline |
Get the height.
|
inline |
Get the height.
|
inline |
Get the width.
|
inline |
Get the width.