目录

GetInputConstData

Function Description

Obtains the data of the Const node if the specified operator input connects to a Const node.

Function Prototype

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;

Parameters

Parameter Input/Output Description
dst_name Input Enter a name.
data Output Data tensor of the Const node.

Return Value

Type Description
graphStatus If the node corresponding to the specified operator input is a Const node and data is obtained successfully, GRAPH_SUCCESS is returned. Otherwise, GRAPH_FAILED is returned.

Exception Handling

None

Restrictions

None