Updated on 2022-03-13 GMT+08:00

GetDim

Function Prototype

int64_t GetDim(size_t idx) const;

Function Description

Obtains the length of dimension idx of Shape.

Parameter Description

Parameter

Input/Output

Type

Description

idx

Input

size_t

Dimension index, which starts from 0

Return Value

Parameter

Type

Description

-

int64_t

Length of dimension idx

Exception Handling

None

Restriction

None