TensorRT  6.0.1.5
nvinfer1::DimsHW Class Reference

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

#include <NvInfer.h>

Inheritance diagram for nvinfer1::DimsHW:
nvinfer1::Dims2 nvinfer1::Dims

Public Member Functions

 DimsHW ()
 Construct an empty DimsHW object.
 
 DimsHW (int height, int width)
 Construct a DimsHW given height and width. More...
 
int & h ()
 Get the height. More...
 
int h () const
 Get the height. More...
 
int & w ()
 Get the width. More...
 
int w () const
 Get the width. More...
 
- Public Member Functions inherited from nvinfer1::Dims2
 Dims2 ()
 Construct an empty Dims2 object.
 
 Dims2 (int d0, int d1)
 Construct a Dims2 from 2 elements. More...
 

Additional Inherited Members

- Public Attributes inherited from nvinfer1::Dims
int nbDims
 The number of dimensions.
 
int d [MAX_DIMS]
 The extent of each dimension.
 
TRT_DEPRECATED DimensionType type [MAX_DIMS]
 The type of each dimension.
 
- Static Public Attributes inherited from nvinfer1::Dims
static const int MAX_DIMS = 8
 The maximum number of dimensions supported for a tensor.
 

Detailed Description

Descriptor for two-dimensional spatial data.

Constructor & Destructor Documentation

◆ DimsHW()

nvinfer1::DimsHW::DimsHW ( int  height,
int  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]

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

Get the height.

Returns
The height.

◆ h() [2/2]

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

Get the height.

Returns
The height.

◆ w() [1/2]

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

Get the width.

Returns
The width.

◆ w() [2/2]

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

Get the width.

Returns
The width.

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