目录

UpdateDynamicInputDesc

Function Description

Updates the dynamic input TensorDesc of an operator based on the combination of its input name and index.

Function Prototype

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

graphStatus UpdateDynamicInputDesc(const std::string &name, uint32_t index, const TensorDesc &tensor_desc);
graphStatus UpdateDynamicInputDesc(const char_t *name, uint32_t index, const TensorDesc &tensor_desc);

Parameters

Parameter Input/Output Description
name Input Dynamic **input **name of the operator.
index Input Dynamic input index of the operator, which starts from 0.
tensor_desc Input TensorDesc object.

Return Value

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

Exception Handling

None

Restrictions

None