GetDims

函数功能

获取Tensor的shape的总维度数。

函数原型

int32_t GetDims() const

参数说明

返回值说明

Tensor的shape的总维度数。

约束说明

无。

调用示例

int32_t dims = shape->GetDims();