TensorRT
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
nvinfer1::DimsCHW Class Reference

descriptor for data with one channel dimension and two spatial dimensions More...

#include <NvInfer.h>

Inheritance diagram for nvinfer1::DimsCHW:
nvinfer1::Dims

Public Member Functions

 DimsCHW ()
 construct an empty DimsCHW object
 
 DimsCHW (int channels, int height, int width)
 construct a DimsCHW given channel count, height and width More...
 
int & c ()
 get the channel count More...
 
int c () const
 get the channel count 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...
 

Additional Inherited Members

- Public Attributes inherited from nvinfer1::Dims
int nbDims
 the number of dimensions
 
int d [MAX_DIMS]
 the extent of each dimension
 
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 data with one channel dimension and two spatial dimensions

Constructor & Destructor Documentation

nvinfer1::DimsCHW::DimsCHW ( int  channels,
int  height,
int  width 
)
inline

construct a DimsCHW given channel count, height and width

Parameters
channelsthe channel count
heightthe height of the data
widththe width of the data

Member Function Documentation

int& nvinfer1::DimsCHW::c ( )
inline

get the channel count

Returns
the channel count
int nvinfer1::DimsCHW::c ( ) const
inline

get the channel count

Returns
the channel count
int& nvinfer1::DimsCHW::h ( )
inline

get the height

Returns
the height
int nvinfer1::DimsCHW::h ( ) const
inline

get the height

Returns
the height
int& nvinfer1::DimsCHW::w ( )
inline

get the width

Returns
the width
int nvinfer1::DimsCHW::w ( ) const
inline

get the width

Returns
the width

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