SetShapeRange
Description
Sets the shape range.
Prototype
graphStatus SetShapeRange(const std::vector<std::pair<int64_t,int64_t>> &range)
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
range |
Input |
Shape range. A vector of pairs of the minimum and maximum dimension sizes. For example: If the tensor shape is {1,1,-1,2} and the maximum value of the third axis is 100, range can be set to {{1,1},{1,1},{1,100},{2,2}}. |
Returns
graphStatus type. GRAPH_SUCCESS (0) on success; else, failure.
Exception Handling
None
Restrictions
None
Parent topic: TensorDesc