TensorRT 10.8.0
nvinfer1::DimsHW 类参考

二维空间数据描述符。 更多...

#include <NvInferLegacyDims.h>

nvinfer1::DimsHW 的继承关系图
nvinfer1::Dims2 nvinfer1::Dims64

公共成员函数

 DimsHW ()
 构造一个空的 DimsHW 对象。 更多...
 
 DimsHW (int64_t height, int64_t width)
 根据高度和宽度构造一个 DimsHW更多...
 
int64_t & h ()
 获取高度。 更多...
 
int64_t h () const
 获取高度。 更多...
 
int64_t & w ()
 获取宽度。 更多...
 
int64_t w () const
 获取宽度。 更多...
 
- 继承自 nvinfer1::Dims2 的公共成员函数
 Dims2 ()
 构造一个空的 Dims2 对象。 更多...
 
 Dims2 (int64_t d0, int64_t d1)
 从 2 个元素构造一个 Dims2更多...
 

附加的继承成员

- 继承自 nvinfer1::Dims64 的公共属性
int32_t nbDims
 秩(维度数量)。 更多...
 
int64_t d [MAX_DIMS]
 每个维度的范围。 更多...
 
- 继承自 nvinfer1::Dims64 的静态公共属性
static constexpr int32_t MAX_DIMS {8}
 张量支持的最大秩(维度数量)。 更多...
 

详细描述

二维空间数据描述符。

构造函数 & 析构函数文档

◆ DimsHW() [1/2]

nvinfer1::DimsHW::DimsHW ( )
inline

构造一个空的 DimsHW 对象。

◆ DimsHW() [2/2]

nvinfer1::DimsHW::DimsHW ( int64_t  height,
int64_t  width 
)
inline

根据高度和宽度构造一个 DimsHW

参数
height数据的 height
width数据的 width

成员函数文档

◆ h() [1/2]

int64_t & nvinfer1::DimsHW::h ( )
inline

获取高度。

返回值
高度。

◆ h() [2/2]

int64_t nvinfer1::DimsHW::h ( ) const
inline

获取高度。

返回值
高度。

◆ w() [1/2]

int64_t & nvinfer1::DimsHW::w ( )
inline

获取宽度。

返回值
宽度。

◆ w() [2/2]

int64_t nvinfer1::DimsHW::w ( ) const
inline

获取宽度。

返回值
宽度。

此类文档的生成文件为

  版权所有 © 2024 NVIDIA Corporation
  隐私政策 | 管理我的隐私 | 请勿出售或分享我的数据 | 服务条款 | 辅助功能 | 公司政策 | 产品安全 | 联系方式