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

Descriptor for two-dimensional spatial data. More...

Inheritance diagram for nvinfer1::DimsHW:
Collaboration diagram for nvinfer1::DimsHW:

Public Member Functions

 DimsHW ()
 Construct an empty DimsHW object. More...
 
 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...
 
 __attribute__ ((deprecated)) DimensionType type[MAX_DIMS]
 The type of each dimension, provided for backwards compatibility. More...
 

Public Attributes

int32_t nbDims
 The number of dimensions. More...
 
int32_t d [MAX_DIMS]
 The extent of each dimension. More...
 

Static Public Attributes

static const int32_t MAX_DIMS = 8
 The maximum number of dimensions supported for a tensor. More...
 

Detailed Description

Descriptor for two-dimensional spatial data.

Constructor & Destructor Documentation

◆ DimsHW() [1/2]

nvinfer1::DimsHW::DimsHW ( )
inline

Construct an empty DimsHW object.

◆ DimsHW() [2/2]

nvinfer1::DimsHW::DimsHW ( int32_t  height,
int32_t  width 
)
inline

Construct a DimsHW given height and width.

Parameters
Heightthe height of the data
Widththe width of the data

Member Function Documentation

◆ h() [1/2]

int32_t& nvinfer1::DimsHW::h ( )
inline

Get the height.

Returns
The height.
Here is the caller graph for this function:

◆ h() [2/2]

int32_t nvinfer1::DimsHW::h ( ) const
inline

Get the height.

Returns
The height.

◆ w() [1/2]

int32_t& nvinfer1::DimsHW::w ( )
inline

Get the width.

Returns
The width.
Here is the caller graph for this function:

◆ w() [2/2]

int32_t nvinfer1::DimsHW::w ( ) const
inline

Get the width.

Returns
The width.

◆ __attribute__()

nvinfer1::Dims::__attribute__ ( (deprecated)  )
inherited

The type of each dimension, provided for backwards compatibility.

and will be removed in TensorRT 8.0.

Member Data Documentation

◆ MAX_DIMS

const int32_t nvinfer1::Dims::MAX_DIMS = 8
staticinherited

The maximum number of dimensions supported for a tensor.

◆ nbDims

int32_t nvinfer1::Dims::nbDims
inherited

The number of dimensions.

◆ d

int32_t nvinfer1::Dims::d[MAX_DIMS]
inherited

The extent of each dimension.


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