获取dim_num。
size_t GetDimNum() const
无
获取dim_num,即Shape的长度。
Shape shape0({3, 256, 256}); auto dim_num = shape0.GetDimNum(); // 3