GetDimSize

Description

Obtains the size of a dimension.

Prototype

int64_t GetDimSize(int32_t index) const

Parameters

Parameter

Input/Output

Description

index

Input

Dimension index. The value range is [0, GetDims() – 1].

Returns

int64_t for the dimension size.

Restrictions

None

Example

int64_t dimSize = shape->GetDimSize(0);