Sets the value of dim_num.
void SetDimNum(const size_t dim_num)
None
Shape shape0({3, 256, 256}); shape0.SetDimNum(1); auto dim_num = shape0.GetDimNum(); // 1