Obtains dim_num.
size_t GetDimNum() const
None
dim_num, which indicates the shape length.
Shape shape0({3, 256, 256}); auto dim_num = shape0.GetDimNum(); // 3