SetShapeDimNum
Description
Sets the dimension size of a shape, that is, the rank size.
Prototype
graphStatus SetShapeDimNum(const size_t dim_num)
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
dim_num |
Input |
Dimension size of a shape, that is, the rank of the original shape. |
Returns
graphStatus type. GRAPH_SUCCESS on success; GRAPH_FAILED on failure.
Exception Handling
None.
Restrictions
None.
Parent topic: Tensor