18#ifndef NV_INFER_LEGACY_DIMS_H
19#define NV_INFER_LEGACY_DIMS_H
21#define NV_INFER_INTERNAL_INCLUDE_RUNTIME_BASE 1
23#undef NV_INFER_INTERNAL_INCLUDE_RUNTIME_BASE
95 DimsHW(int64_t height, int64_t width)
96 :
Dims2(height, width)
164 Dims3(int64_t d0, int64_t d1, int64_t d2)
196 Dims4(int64_t d0, int64_t d1, int64_t d2, int64_t d3)
Descriptor for two-dimensional data.
Definition: NvInferLegacyDims.h:45
Dims2()
Construct an empty Dims2 object.
Definition: NvInferLegacyDims.h:50
Dims2(int64_t d0, int64_t d1)
Construct a Dims2 from 2 elements.
Definition: NvInferLegacyDims.h:61
Descriptor for three-dimensional data.
Definition: NvInferLegacyDims.h:147
Dims3()
Construct an empty Dims3 object.
Definition: NvInferLegacyDims.h:152
Dims3(int64_t d0, int64_t d1, int64_t d2)
Construct a Dims3 from 3 elements.
Definition: NvInferLegacyDims.h:164
Descriptor for four-dimensional data.
Definition: NvInferLegacyDims.h:178
Dims4(int64_t d0, int64_t d1, int64_t d2, int64_t d3)
Construct a Dims4 from 4 elements.
Definition: NvInferLegacyDims.h:196
Dims4()
Construct an empty Dims4 object.
Definition: NvInferLegacyDims.h:183
Definition: NvInferRuntimeBase.h:202
static constexpr int32_t MAX_DIMS
The maximum rank (number of dimensions) supported for a tensor.
Definition: NvInferRuntimeBase.h:205
int64_t d[MAX_DIMS]
The extent of each dimension.
Definition: NvInferRuntimeBase.h:211
int32_t nbDims
The rank (number of dimensions).
Definition: NvInferRuntimeBase.h:208
Descriptor for two-dimensional spatial data.
Definition: NvInferLegacyDims.h:79
int64_t & h()
Get the height.
Definition: NvInferLegacyDims.h:105
DimsHW()
Construct an empty DimsHW object.
Definition: NvInferLegacyDims.h:84
int64_t h() const
Get the height.
Definition: NvInferLegacyDims.h:115
DimsHW(int64_t height, int64_t width)
Construct a DimsHW given height and width.
Definition: NvInferLegacyDims.h:95
int64_t w() const
Get the width.
Definition: NvInferLegacyDims.h:135
int64_t & w()
Get the width.
Definition: NvInferLegacyDims.h:125
The TensorRT API version 1 namespace.