GetDimNum
Function Usage
Obtains the dimension count of a shape.
Prototype
1 | size_t GetDimNum() const |
Parameters
None
Returns
Dimension count.
Constraints
None
Examples
1 2 | Shape shape0({3, 256, 256}); auto dim_num = shape0.GetDimNum(); // 3 |
Parent topic: Shape