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