18#ifndef NV_INFER_LEGACY_DIMS_H
19#define NV_INFER_LEGACY_DIMS_H
21#define NV_INFER_INTERNAL_INCLUDE 1
23#undef NV_INFER_INTERNAL_INCLUDE
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)
二维数据描述符。
定义: NvInferLegacyDims.h:45
Dims2()
构造一个空的 Dims2 对象。
定义: NvInferLegacyDims.h:50
Dims2(int64_t d0, int64_t d1)
从 2 个元素构造 Dims2。
定义: NvInferLegacyDims.h:61
三维数据描述符。
定义: NvInferLegacyDims.h:147
Dims3()
构造一个空的 Dims3 对象。
定义: NvInferLegacyDims.h:152
Dims3(int64_t d0, int64_t d1, int64_t d2)
从 3 个元素构造 Dims3。
定义: NvInferLegacyDims.h:164
四维数据描述符。
定义: NvInferLegacyDims.h:178
Dims4(int64_t d0, int64_t d1, int64_t d2, int64_t d3)
从 4 个元素构造 Dims4。
定义: NvInferLegacyDims.h:196
Dims4()
构造一个空的 Dims4 对象。
定义: NvInferLegacyDims.h:183
定义: NvInferRuntimeBase.h:203
static constexpr int32_t MAX_DIMS
张量支持的最大秩(维度数)。
定义: NvInferRuntimeBase.h:206
int64_t d[MAX_DIMS]
每个维度的范围。
定义: NvInferRuntimeBase.h:212
int32_t nbDims
秩(维度数)。
定义: NvInferRuntimeBase.h:209
二维空间数据描述符。
定义: NvInferLegacyDims.h:79
int64_t & h()
获取高度。
定义: NvInferLegacyDims.h:105
DimsHW()
构造一个空的 DimsHW 对象。
定义: NvInferLegacyDims.h:84
int64_t h() const
获取高度。
定义: NvInferLegacyDims.h:115
DimsHW(int64_t height, int64_t width)
给定高度和宽度,构造 DimsHW。
定义: NvInferLegacyDims.h:95
int64_t w() const
获取宽度。
定义: NvInferLegacyDims.h:135
int64_t & w()
获取宽度。
定义: NvInferLegacyDims.h:125