GetInputConstData
Description
Obtains the data of the Const node which is the input of the specified operator.
Prototype
APIs using strings will be deprecated in later versions. Use APIs supporting non-string data instead.
graphStatus GetInputConstData(const std::string &dst_name, Tensor &data) const
graphStatus GetInputConstData(const char_t *dst_name, Tensor &data) const
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
dst_name |
Input |
Input name. |
data |
Output |
Data tensor of the Const node. |
Returns
graphStatus type. If the node corresponding to the input of the specified operator is a Const node and data is obtained successfully, GRAPH_SUCCESS is returned. Otherwise, GRAPH_FAILED is returned.
Exception Handling
None
Restrictions
None
Parent topic: Operator