GetInputConstData
Description
Obtains the input const node and its value across subgraphs. Returns the value of the const node if the operator input is a const node. Otherwise, a failure message is returned.
Prototype
graphStatus GetInputConstData(const int32_t index, Tensor &data) const;
Restrictions
None
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
index |
Input |
Input port index of the operator. |
data |
Output |
Value of the const input. |
Returns
Parameter |
Type |
Description |
|---|---|---|
- |
graphStatus |
GRAPH_SUCCESS: success. GRAPH_NODE_WITHOUT_CONST_INPUT: The input is not a const node. Other values: failure. |
Parent topic: Class GNode