GetExpandDimsRule
Function Usage
Obtains the dimension expansion rule of a tensor.
Prototype
1 | graphStatus GetExpandDimsRule(AscendString &expand_dims_rule) const |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
expand_dims_rule |
Input |
Dimension expansion rule to be returned by the function. The value is a string. |
Returns
graphStatus type. GRAPH_SUCCESS on success; GRAPH_FAILED on failure.
Exception Handling
None
Constraints
None
Parent topic: Tensor