Obtains the data of the Const node if the specified operator input connects to a Const node.
APIs taking string arguments will be deprecated in future releases. Use APIs taking non-string arguments instead.
graphStatus GetInputConstData(const std::string &dst_name, Tensor &data) const; graphStatus GetInputConstData(const char_t *dst_name, Tensor &data) const;
| Parameter | Input/Output | Description |
|---|---|---|
| dst_name | Input | Enter a name. |
| data | Output | Data tensor of the Const node. |