Descriptor for two-dimensional data. More...
Public Member Functions | |
Dims2 () | |
Construct an empty Dims2 object. More... | |
Dims2 (int32_t d0, int32_t d1) | |
Construct a Dims2 from 2 elements. 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... | |
Descriptor for two-dimensional data.
|
inline |
Construct an empty Dims2 object.
|
inline |
Construct a Dims2 from 2 elements.
d0 | The first element. |
d1 | The second element. |
|
inherited |
The type of each dimension, provided for backwards compatibility.
and will be removed in TensorRT 8.0.
|
staticinherited |
The maximum number of dimensions supported for a tensor.
|
inherited |
The number of dimensions.
|
inherited |
The extent of each dimension.