UpdateDynamicInputDesc

Description

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

Prototype

APIs using strings will be deprecated in later versions. Use APIs supporting non-string data 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 1.

tensor_desc

Input

TensorDesc object.

Returns

graphStatus type. GRAPH_SUCCESS on success; GRAPH_FAILED on failure.

Exception Handling

None

Restrictions

None