获取Shape的维度个数。
1
size_t GetDimNum() const
无。
Shape的维度个数。
1 2
Shape shape0({3, 256, 256}); auto dim_num = shape0.GetDimNum(); // 3