13#ifndef NV_INFER_LEGACY_DIMS_H
14#define NV_INFER_LEGACY_DIMS_H
80 DimsHW(int32_t height, int32_t width)
81 :
Dims2(height, width)
148 Dims3(int32_t d0, int32_t d1, int32_t d2)
149 :
Dims{3, {d0, d1, d2}}
177 Dims4(int32_t d0, int32_t d1, int32_t d2, int32_t d3)
178 :
Dims{4, {d0, d1, d2, 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:153
Descriptor for three-dimensional data.
Definition: NvInferLegacyDims.h:131
Dims3()
Construct an empty Dims3 object.
Definition: NvInferLegacyDims.h:136
Dims3(int32_t d0, int32_t d1, int32_t d2)
Construct a Dims3 from 3 elements.
Definition: NvInferLegacyDims.h:148
Descriptor for four-dimensional data.
Definition: NvInferLegacyDims.h:159
Dims4()
Construct an empty Dims4 object.
Definition: NvInferLegacyDims.h:164
Dims4(int32_t d0, int32_t d1, int32_t d2, int32_t d3)
Construct a Dims4 from 4 elements.
Definition: NvInferLegacyDims.h:177
Descriptor for two-dimensional spatial data.
Definition: NvInferLegacyDims.h:64
int32_t w() const
Get the width.
Definition: NvInferLegacyDims.h:120
int32_t h() const
Get the height.
Definition: NvInferLegacyDims.h:100
DimsHW()
Construct an empty DimsHW object.
Definition: NvInferLegacyDims.h:69
int32_t & w()
Get the width.
Definition: NvInferLegacyDims.h:110
DimsHW(int32_t height, int32_t width)
Construct a DimsHW given height and width.
Definition: NvInferLegacyDims.h:80
int32_t & h()
Get the height.
Definition: NvInferLegacyDims.h:90
The TensorRT API version 1 namespace.