UpdateInputDesc
Description
Updates the input TensorDesc of an operator based on its input name.
Prototype
APIs using strings will be deprecated in later versions. Use APIs supporting non-string data 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. |
Returns
graphStatus type. GRAPH_SUCCESS on success; GRAPH_FAILED on failure.
Exception Handling
Scenario |
Description |
|---|---|
No input corresponding to the name. |
The function terminates prematurely, and GRAPH_FAILED is returned. |
Restrictions
None
Parent topic: Operator