Descriptor for data with one channel dimension and two spatial dimensions.
More...
#include <NvInfer.h>
|
| DimsCHW () |
| Construct an empty DimsCHW object.
|
|
| DimsCHW (int32_t channels, int32_t height, int32_t width) |
| Construct a DimsCHW given channel count, height and width. More...
|
|
int32_t & | c () |
| Get the channel count. More...
|
|
int32_t | c () const |
| Get the channel count. 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...
|
|
| Dims3 () |
| Construct an empty Dims3 object.
|
|
| Dims3 (int32_t d0, int32_t d1, int32_t d2) |
| Construct a Dims3 from 3 elements. More...
|
|
|
int32_t | nbDims |
| The number of dimensions.
|
|
int32_t | d [MAX_DIMS] |
| The extent of each dimension.
|
|
TRT_DEPRECATED DimensionType | type [MAX_DIMS] |
| The type of each dimension.
|
|
static const int32_t | MAX_DIMS = 8 |
| The maximum number of dimensions supported for a tensor.
|
|
Descriptor for data with one channel dimension and two spatial dimensions.
- Deprecated:
- DimsCHW will be removed in a future version of TensorRT, use Dims3 instead.
◆ DimsCHW()
nvinfer1::DimsCHW::DimsCHW |
( |
int32_t |
channels, |
|
|
int32_t |
height, |
|
|
int32_t |
width |
|
) |
| |
|
inline |
Construct a DimsCHW given channel count, height and width.
- Parameters
-
channels | The channel count. |
height | The height of the data. |
width | The width of the data. |
◆ c() [1/2]
int32_t& nvinfer1::DimsCHW::c |
( |
| ) |
|
|
inline |
Get the channel count.
- Returns
- The channel count.
◆ c() [2/2]
int32_t nvinfer1::DimsCHW::c |
( |
| ) |
const |
|
inline |
Get the channel count.
- Returns
- The channel count.
◆ h() [1/2]
int32_t& nvinfer1::DimsCHW::h |
( |
| ) |
|
|
inline |
Get the height.
- Returns
- The height.
◆ h() [2/2]
int32_t nvinfer1::DimsCHW::h |
( |
| ) |
const |
|
inline |
Get the height.
- Returns
- The height.
◆ w() [1/2]
int32_t& nvinfer1::DimsCHW::w |
( |
| ) |
|
|
inline |
Get the width.
- Returns
- The width.
◆ w() [2/2]
int32_t nvinfer1::DimsCHW::w |
( |
| ) |
const |
|
inline |
Get the width.
- Returns
- The width.
The documentation for this class was generated from the following file: