TensorRT 10.0.0
nvinfer1::DimsHW Class Reference

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

#include <NvInferLegacyDims.h>

Inheritance diagram for nvinfer1::DimsHW:
nvinfer1::Dims2 nvinfer1::Dims64

Public Member Functions

 DimsHW ()
 Construct an empty DimsHW object. More...
 
 DimsHW (int64_t height, int64_t width)
 Construct a DimsHW given height and width. More...
 
int64_t & h ()
 Get the height. More...
 
int64_t h () const
 Get the height. More...
 
int64_t & w ()
 Get the width. More...
 
int64_t w () const
 Get the width. 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 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 ( int64_t  height,
int64_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]

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

Get the height.

Returns
The height.

◆ h() [2/2]

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

Get the height.

Returns
The height.

◆ w() [1/2]

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

Get the width.

Returns
The width.

◆ w() [2/2]

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

Get the width.

Returns
The width.

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