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

SetDim

Function Prototype

graphStatus SetDim(size_t idx, int64_t value);

Function Description

Sets the value of dimension idx in Shape.

Parameter Description

Parameter

Input/Output

Type

Description

idx

Input

size_t

Dimension index of Shape, which starts from 0

value

Input

int64_t

Value to be set

Return Value

Parameter

Type

Description

-

graphStatus

If the operation is successful, GRAPH_SUCCESS is returned. Otherwise, GRAPH_FAILED is returned.

Exception Handling

None

Restriction

None