GetDimNum
Description
Obtains the dimension count of a shape.
Prototype
size_t GetDimNum() const
Parameters
None
Returns
Dimension count.
Restrictions
None
Example
Shape shape0({3, 256, 256});
auto dim_num = shape0.GetDimNum(); // 3
Parent topic: Shape