目录

UpdateInputDesc

Function Description

Updates the input TensorDesc of an operator based on its input name.

Function Prototype

APIs taking string arguments will be deprecated in future releases. Use APIs taking non-string arguments instead.

graphStatus UpdateInputDesc(const std::string &name, const TensorDesc &tensor_desc);
graphStatus UpdateInputDesc(const char_t *name, const TensorDesc &tensor_desc);

Parameters

Parameter Input/Output Description
name Input **Input **name of the operator.
tensor_desc Input TensorDesc object.

Return Value

Type Description
graphStatus If **TensorDesc **is updated successfully, **GRAPH_SUCCESS **is returned. Otherwise, **GRAPH_FAILED **is returned.

Exception Handling

Exception Scenario Description
No input corresponding to the name. The function terminates prematurely, and GRAPH_FAILED is returned.

Restrictions

None