目录

GetDimNum

Function Description

Obtains dim_num.

Function Prototype

size_t GetDimNum() const

Parameters

None

Return Value

dim_num, which indicates the shape length.

Restrictions

None

Calling Example

Shape shape0({3, 256, 256});
auto dim_num = shape0.GetDimNum(); // 3