13#ifndef NV_INFER_LEGACY_DIMS_H
14#define NV_INFER_LEGACY_DIMS_H
86 DimsHW(int32_t height, int32_t width)
87 :
Dims2(height, width)
154 Dims3(int32_t d0, int32_t d1, int32_t d2)
185 Dims4(int32_t d0, int32_t d1, int32_t d2, int32_t d3)
Descriptor for two-dimensional data.
Definition: NvInferLegacyDims.h:37
Dims2(int32_t d0, int32_t d1)
Construct a Dims2 from 2 elements.
Definition: NvInferLegacyDims.h:53
Dims2()
Construct an empty Dims2 object.
Definition: NvInferLegacyDims.h:42
Definition: NvInferRuntimeCommon.h:171
int32_t nbDims
The rank (number of dimensions).
Definition: NvInferRuntimeCommon.h:176
static constexpr int32_t MAX_DIMS
The maximum rank (number of dimensions) supported for a tensor.
Definition: NvInferRuntimeCommon.h:174
int32_t d[MAX_DIMS]
The extent of each dimension.
Definition: NvInferRuntimeCommon.h:178
Descriptor for three-dimensional data.
Definition: NvInferLegacyDims.h:137
Dims3()
Construct an empty Dims3 object.
Definition: NvInferLegacyDims.h:142
Dims3(int32_t d0, int32_t d1, int32_t d2)
Construct a Dims3 from 3 elements.
Definition: NvInferLegacyDims.h:154
Descriptor for four-dimensional data.
Definition: NvInferLegacyDims.h:167
Dims4()
Construct an empty Dims4 object.
Definition: NvInferLegacyDims.h:172
Dims4(int32_t d0, int32_t d1, int32_t d2, int32_t d3)
Construct a Dims4 from 4 elements.
Definition: NvInferLegacyDims.h:185
Descriptor for two-dimensional spatial data.
Definition: NvInferLegacyDims.h:70
int32_t w() const
Get the width.
Definition: NvInferLegacyDims.h:126
int32_t h() const
Get the height.
Definition: NvInferLegacyDims.h:106
DimsHW()
Construct an empty DimsHW object.
Definition: NvInferLegacyDims.h:75
int32_t & w()
Get the width.
Definition: NvInferLegacyDims.h:116
DimsHW(int32_t height, int32_t width)
Construct a DimsHW given height and width.
Definition: NvInferLegacyDims.h:86
int32_t & h()
Get the height.
Definition: NvInferLegacyDims.h:96
The TensorRT API version 1 namespace.