Go to the documentation of this file.
50 #ifndef NV_INFER_LEGACY_DIMS_H
51 #define NV_INFER_LEGACY_DIMS_H
82 for (int32_t i = 0; i <
MAX_DIMS; ++i)
128 :
Dims2(height, width)
186 for (int32_t i = 0; i <
MAX_DIMS; ++i)
199 Dims3(int32_t d0, int32_t d1, int32_t d2)
225 for (int32_t i = 0; i <
MAX_DIMS; ++i)
239 Dims4(int32_t d0, int32_t d1, int32_t d2, int32_t d3)
255 #endif // NV_INFER_LEGCY_DIMS_H
Dims3()
Construct an empty Dims3 object.
Definition: NvInferLegacyDims.h:183
Dims4()
Construct an empty Dims4 object.
Definition: NvInferLegacyDims.h:222
Definition: NvInferRuntimeCommon.h:194
Descriptor for two-dimensional spatial data.
Definition: NvInferLegacyDims.h:110
DimsHW(int32_t height, int32_t width)
Construct a DimsHW given height and width.
Definition: NvInferLegacyDims.h:127
int32_t d[MAX_DIMS]
The extent of each dimension.
Definition: NvInferRuntimeCommon.h:202
The TensorRT API version 1 namespace.
int32_t h() const
Get the height.
Definition: NvInferLegacyDims.h:147
Dims3(int32_t d0, int32_t d1, int32_t d2)
Construct a Dims3 from 3 elements.
Definition: NvInferLegacyDims.h:199
int32_t nbDims
The number of dimensions.
Definition: NvInferRuntimeCommon.h:200
Dims4(int32_t d0, int32_t d1, int32_t d2, int32_t d3)
Construct a Dims4 from 4 elements.
Definition: NvInferLegacyDims.h:239
Dims2(int32_t d0, int32_t d1)
Construct a Dims2 from 2 elements.
Definition: NvInferLegacyDims.h:94
int32_t & h()
Get the height.
Definition: NvInferLegacyDims.h:137
int32_t & w()
Get the width.
Definition: NvInferLegacyDims.h:157
Descriptor for three-dimensional data.
Definition: NvInferLegacyDims.h:177
Descriptor for two-dimensional data.
Definition: NvInferLegacyDims.h:73
static constexpr int32_t MAX_DIMS
The maximum number of dimensions supported for a tensor.
Definition: NvInferRuntimeCommon.h:198
DimsHW()
Construct an empty DimsHW object.
Definition: NvInferLegacyDims.h:116
Descriptor for four-dimensional data.
Definition: NvInferLegacyDims.h:216
int32_t w() const
Get the width.
Definition: NvInferLegacyDims.h:167
Dims2()
Construct an empty Dims2 object.
Definition: NvInferLegacyDims.h:79
Copyright © 2024 NVIDIA Corporation
Privacy Policy |
Manage My Privacy |
Do Not Sell or Share My Data |
Terms of Service |
Accessibility |
Corporate Policies |
Product Security |
Contact